mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Add linker flags for the Objective-C compilation mode.
Fixes Araq/Nim#2153.
This commit is contained in:
@@ -112,6 +112,22 @@ path="$lib/pure/unidecode"
|
||||
gcc.cpp.options.always = "-w -fpermissive"
|
||||
@end
|
||||
|
||||
# Configuration for Objective-C compiler:
|
||||
#
|
||||
# Options for GNUStep. GNUStep configuration varies wildly, so you'll probably
|
||||
# have to add additional compiler and linker flags on a per-project basis.
|
||||
gcc.objc.options.linker = "-lobjc -lgnustep-base"
|
||||
llvm_gcc.objc.options.linker = "-lobjc -lgnustep-base"
|
||||
clang.objc.options.linker = "-lobjc -lgnustep-base"
|
||||
|
||||
# Options for Mac OS X. Mac OS X uses its own Objective-C stack that is
|
||||
# totally different from GNUStep.
|
||||
@if macosx:
|
||||
gcc.objc.options.linker = "-framework Foundation"
|
||||
llvm_gcc.objc.options.linker = "-framework Foundation"
|
||||
clang.objc.options.linker = "-framework Foundation"
|
||||
@end
|
||||
|
||||
# Configuration for the VxWorks
|
||||
# This has been tested with VxWorks 6.9 only
|
||||
@if vxworks:
|
||||
|
||||
Reference in New Issue
Block a user