3d36973022
Update options according to llvm-config: * delete "--stdlib=libc++" (it seems to provoke runtime link errors on Linux) * remove "-lffi" (it doesn't seem to be required) * remove "-lc++" on macOS Also move Linux system libs options to llvm.def (as for macOS)
24 lines
959 B
Modula-2
24 lines
959 B
Modula-2
headers = llvm-c/Core.h llvm-c/ExecutionEngine.h llvm-c/Target.h llvm-c/Analysis.h llvm-c/BitWriter.h llvm-c/BitReader.h
|
|
|
|
compilerOpts = -std=c99 -fPIC \
|
|
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers \
|
|
-pedantic -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor \
|
|
-DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
|
|
|
|
|
linker = clang++
|
|
|
|
linkerOpts = -fPIC -fvisibility-inlines-hidden \
|
|
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers \
|
|
-pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor \
|
|
-std=c++11 \
|
|
-DNDEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
|
|
|
linkerOpts.osx = \
|
|
-Wl,-search_paths_first -Wl,-headerpad_max_install_names \
|
|
-lpthread -lz -lm -lcurses
|
|
|
|
linkerOpts.linux=\
|
|
-Wl,-z,noexecstack \
|
|
-lrt -ldl -lpthread -lz -lm
|