[compiler-rt] r307815 - Fix the declaration of DARWIN_PREFER_PUBLIC_SDK cmake variable (move before the return).
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 12 10:11:53 PDT 2017
Author: kuba.brecka
Date: Wed Jul 12 10:11:53 2017
New Revision: 307815
URL: http://llvm.org/viewvc/llvm-project?rev=307815&view=rev
Log:
Fix the declaration of DARWIN_PREFER_PUBLIC_SDK cmake variable (move before the return).
Modified:
compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=307815&r1=307814&r2=307815&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Wed Jul 12 10:11:53 2017
@@ -5,11 +5,12 @@ include(CMakeParseArguments)
# the current Xcode.
function(find_darwin_sdk_dir var sdk_name)
set(DARWIN_${sdk_name}_CACHED_SYSROOT "" CACHE STRING "Darwin SDK path for SDK ${sdk_name}.")
+ set(DARWIN_PREFER_PUBLIC_SDK OFF CACHE BOOL "Prefer Darwin public SDK, even when an internal SDK is present.")
+
if(DARWIN_${sdk_name}_CACHED_SYSROOT)
set(${var} ${DARWIN_${sdk_name}_CACHED_SYSROOT} PARENT_SCOPE)
return()
endif()
- set(DARWIN_PREFER_PUBLIC_SDK OFF CACHE BOOL "Prefer Darwin public SDK, even when an internal SDK is present.")
if(NOT DARWIN_PREFER_PUBLIC_SDK)
# Let's first try the internal SDK, otherwise use the public SDK.
execute_process(
More information about the llvm-commits
mailing list