mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
Merge pull request #1936 from sa2ajj/freebsd-compiler
make FreeBSD's compiler clang
This commit is contained in:
@@ -100,7 +100,7 @@ hint[LineTooLong]=off
|
||||
@end
|
||||
@end
|
||||
|
||||
@if macosx:
|
||||
@if macosx or freebsd:
|
||||
cc = clang
|
||||
tlsEmulation:on
|
||||
gcc.options.always = "-w -fasm-blocks"
|
||||
|
||||
@@ -54,10 +54,16 @@ case $uos in
|
||||
myos="linux"
|
||||
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
|
||||
;;
|
||||
*freebsd* | *dragonfly* )
|
||||
*dragonfly* )
|
||||
myos="freebsd"
|
||||
LINK_FLAGS="$LINK_FLAGS -lm"
|
||||
;;
|
||||
*freebsd* )
|
||||
myos="freebsd"
|
||||
CC="clang"
|
||||
LINKER="clang"
|
||||
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
|
||||
;;
|
||||
*openbsd* )
|
||||
myos="openbsd"
|
||||
LINK_FLAGS="$LINK_FLAGS -lm"
|
||||
|
||||
Reference in New Issue
Block a user