Skip to content

Commit 07ce265

Browse files
committed
make sure SDKROOT is defined
1 parent 821e09e commit 07ce265

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/build_steps.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ function do_build_lib {
159159
# Pick up the gfortran runtime libraries
160160
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
161161
CFLAGS="$CFLAGS -arch x86_64"
162+
export SDKROOT=${SDKROOT:-$(xcrun --show-sdk-path)}
162163
;;
163164
*-i686)
164165
local bitness=32
@@ -172,8 +173,9 @@ function do_build_lib {
172173
Darwin-arm64)
173174
local bitness=64
174175
local target="VORTEX"
175-
CFLAGS="$CFLAGS -ftrapping-math -mmacosx-version-min=11.0"
176+
CFLAGS="$CFLAGS -ftrapping-math -mmacos-version-min=11.0"
176177
MACOSX_DEPLOYMENT_TARGET="11.0"
178+
export SDKROOT=${SDKROOT:-$(xcrun --show-sdk-path)}
177179
;;
178180
*-s390x)
179181
local bitness=64

0 commit comments

Comments
 (0)