- /usr/bin/{gcc,g++} normally just symlinks to clang/clang++ and may have unknown default flags. For a gcc toolchain, it would be better to use a homebrew installation. For these cases, the compiler will need to be specified with version=.. in WM_COMPILE_CONTROL. For example, with "version=14", to select gcc-14, g++-14 from the homebrew installation. - needs a slight hack for locating the FlexLexer.h header. Added into src/OSspecific/POSIX similar to how it is handled in src/OSspecific/MSwindows CONFIG: add simple config/detection support for libumpire (Linux)
24 lines
641 B
Plaintext
24 lines
641 B
Plaintext
#------------------------------------------------------------------------------
|
|
include $(GENERAL_RULES)/Clang/c
|
|
|
|
ifneq (,$(findstring +xcrun,$(WM_COMPILE_CONTROL)))
|
|
cc := xcrun cc
|
|
endif
|
|
|
|
cARCH := -m64 -ftrapping-math
|
|
|
|
ifneq (,$(strip $(WM_COMPILE_OPTION)))
|
|
sinclude $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
|
|
endif
|
|
|
|
cFLAGS = \
|
|
$(cARCH) $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) \
|
|
$(FOAM_EXTRA_CFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
|
|
|
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
|
|
|
|
# MacOS linking
|
|
include $(ARCHITECTURE_RULES)/link-c
|
|
|
|
#------------------------------------------------------------------------------
|