File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,12 @@ jobs:
103
103
variables :
104
104
CI_OS : osx
105
105
ARCH : x86_64
106
- BOOTSTRAP_CMAKE_FLAGS : -DBUILD_LTO_LIBS=ON
106
+ BOOTSTRAP_CMAKE_FLAGS : >
107
+ -DBUILD_LTO_LIBS=ON
108
+ -DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
107
109
EXTRA_CMAKE_FLAGS : >
108
110
-DBUILD_LTO_LIBS=ON
109
- -DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto"
111
+ -DD_COMPILER_FLAGS="-gcc=/usr/bin/c++ - O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto"
110
112
-DEXTRA_CXXFLAGS=-flto=full
111
113
MACOSX_DEPLOYMENT_TARGET : 10.12
112
114
IOS_DEPLOYMENT_TARGET : 12.0
@@ -132,10 +134,11 @@ jobs:
132
134
- job : macOS_arm64
133
135
timeoutInMinutes : 120
134
136
pool :
135
- vmImage : ' macOS-10.15 '
137
+ vmImage : ' macOS-11 '
136
138
variables :
137
139
CI_OS : osx
138
140
ARCH : arm64
141
+ BOOTSTRAP_CMAKE_FLAGS : -DD_COMPILER_FLAGS=-gcc=/usr/bin/c++
139
142
EXTRA_CMAKE_FLAGS : >
140
143
-DBUILD_LTO_LIBS=ON
141
144
-DD_COMPILER_FLAGS="-O -flto=full -defaultlib=phobos2-ldc-lto,druntime-ldc-lto"
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function(build_d_executable target_name output_exe d_src_files compiler_args lin
94
94
translate_linker_args(full_linker_args translated_linker_args)
95
95
96
96
# We need to link against the C++ runtime library.
97
- if (NOT MSVC AND "${D_COMPILER_ID} " STREQUAL "LDMD" )
97
+ if (NOT MSVC AND "${D_COMPILER_ID} " STREQUAL "LDMD" AND NOT " ${dflags} " MATCHES "(^|;)-gcc=" )
98
98
set (translated_linker_args "-gcc=${CMAKE_CXX_COMPILER} " ${translated_linker_args} )
99
99
endif ()
100
100
You can’t perform that action at this time.
0 commit comments