Skip to content
Snippets Groups Projects
Commit 224c3199 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

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
parent e4f2efec
No related merge requests found
......@@ -91,6 +91,7 @@ export WM_COMPILE_OPTION=Opt
# +openmp : with openmp
# ~openmp : without openmp
# +ccache : use ccache
# +xcrun : use xcrun and native compilers [MacOS]
# ccache=... : ccache command (unquoted, single/double or <> quoted)
# version=... : compiler suffix (eg, "11" for gcc-11)
#export WM_COMPILE_CONTROL="+gold"
......
......@@ -91,6 +91,7 @@ setenv WM_COMPILE_OPTION Opt
# +openmp : with openmp
# ~openmp : without openmp
# +ccache : use ccache
# +xcrun : use xcrun and native compilers [MacOS]
# ccache=... : ccache command (unquoted, single/double or <> quoted)
# version=... : compiler suffix (eg, "11" for gcc-11)
#setenv WM_COMPILE_CONTROL "+gold"
......
#------------------------------------------------------------------------------
include $(GENERAL_RULES)/Clang/c
ifneq (,$(findstring +xcrun,$(WM_COMPILE_CONTROL)))
cc := xcrun cc
endif
cARCH := -m64 -ftrapping-math
ifneq (,$(strip $(WM_COMPILE_OPTION)))
......
#------------------------------------------------------------------------------
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)))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment