Skip to content

Commit

Permalink
Use xcrun instead of xcodebuild for resolving SDK path
Browse files Browse the repository at this point in the history
It's much cheaper to run.
  • Loading branch information
torarnv authored and cristianadam committed Dec 9, 2019
1 parent 2c7aeaf commit 777d364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Platform/Darwin-Initialize.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if(CMAKE_OSX_SYSROOT)
else()
# Transform the sdk name into a path.
execute_process(
COMMAND xcodebuild -sdk ${CMAKE_OSX_SYSROOT} -version Path
COMMAND xcrun -sdk ${CMAKE_OSX_SYSROOT} --show-sdk-path
OUTPUT_VARIABLE _stdout
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_VARIABLE _stderr
Expand Down

0 comments on commit 777d364

Please sign in to comment.