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() {
537537 done
538538 fi
539539
540+ cmake_os_sysroot=" $( xcrun --sdk ${platform} --show-sdk-path) "
541+
540542 cmark_cmake_options=(
541543 -DCMAKE_C_FLAGS=" $( cmark_c_flags ${host} ) "
542544 -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} "
544546 -DCMAKE_OSX_DEPLOYMENT_TARGET=" ${cmake_osx_deployment_target} "
545547 )
546548 llvm_cmake_options=(
547549 -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} "
549551 -DCOMPILER_RT_ENABLE_IOS:BOOL=FALSE
550552 -DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
551553 -DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
You can’t perform that action at this time.
0 commit comments