File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -537,15 +537,17 @@ function set_build_options_for_host() {
537
537
done
538
538
fi
539
539
540
+ cmake_os_sysroot=" $( xcrun --sdk ${platform} --show-sdk-path) "
541
+
540
542
cmark_cmake_options=(
541
543
-DCMAKE_C_FLAGS=" $( cmark_c_flags ${host} ) "
542
544
-DCMAKE_CXX_FLAGS=" $( cmark_c_flags ${host} ) "
543
- -DCMAKE_OSX_SYSROOT:PATH=" $( xcrun --sdk ${platform} --show-sdk-path ) "
545
+ -DCMAKE_OSX_SYSROOT:PATH=" ${cmake_os_sysroot} "
544
546
-DCMAKE_OSX_DEPLOYMENT_TARGET=" ${cmake_osx_deployment_target} "
545
547
)
546
548
llvm_cmake_options=(
547
549
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=" ${cmake_osx_deployment_target} "
548
- -DCMAKE_OSX_SYSROOT:PATH=" $( xcrun --sdk ${platform} --show-sdk-path ) "
550
+ -DCMAKE_OSX_SYSROOT:PATH=" ${cmake_os_sysroot} "
549
551
-DCOMPILER_RT_ENABLE_IOS:BOOL=FALSE
550
552
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
551
553
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
You can’t perform that action at this time.
0 commit comments