mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
CONFIG: enable xcrun with cc/c++ based on WM_COMPILE_CONTROL (#2965)
- adding in +xcrun into WM_COMPILE_CONTROL changes the compiler
settings as follows (for MacOS)
cc := xcrun cc
CC := xcrun c++ -std=c++14
This commit is contained in:
@ -1,6 +1,10 @@
|
||||
#------------------------------------------------------------------------------
|
||||
include $(GENERAL_RULES)/Clang/c
|
||||
|
||||
ifneq (,$(findstring +xcrun,$(WM_COMPILE_CONTROL)))
|
||||
cc := xcrun cc
|
||||
endif
|
||||
|
||||
cARCH := -m64 -ftrapping-math
|
||||
|
||||
ifneq (,$(strip $(WM_COMPILE_OPTION)))
|
||||
|
||||
@ -1,6 +1,10 @@
|
||||
#------------------------------------------------------------------------------
|
||||
include $(GENERAL_RULES)/Clang/c++
|
||||
|
||||
ifneq (,$(findstring +xcrun,$(WM_COMPILE_CONTROL)))
|
||||
CC := xcrun c++ -std=c++14
|
||||
endif
|
||||
|
||||
c++ARCH := -m64 -pthread -ftrapping-math
|
||||
|
||||
ifneq (,$(strip $(WM_COMPILE_OPTION)))
|
||||
|
||||
Reference in New Issue
Block a user