diff --git a/etc/bashrc b/etc/bashrc index 2e157923b7..e4cb5fb72d 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -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" diff --git a/etc/cshrc b/etc/cshrc index 5a42602f50..19f5849746 100644 --- a/etc/cshrc +++ b/etc/cshrc @@ -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" diff --git a/wmake/rules/darwin64Clang/c b/wmake/rules/darwin64Clang/c index d145bd5b92..3083b281ed 100644 --- a/wmake/rules/darwin64Clang/c +++ b/wmake/rules/darwin64Clang/c @@ -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))) diff --git a/wmake/rules/darwin64Clang/c++ b/wmake/rules/darwin64Clang/c++ index a9e092144a..01158bcb0f 100644 --- a/wmake/rules/darwin64Clang/c++ +++ b/wmake/rules/darwin64Clang/c++ @@ -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)))