mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-17 21:32:00 +01:00
Merge 52ac17757eed5056d03a6861bcc24ee864c17385 into 5f4422d68dc3530c353af1f87499de1c864b60ad
This commit is contained in:
commit
7b94fbdaa5
@ -374,6 +374,7 @@ if(SANITIZERS)
|
|||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
"
|
"
|
||||||
RESULT_VAR linker_supports_sanitizers
|
RESULT_VAR linker_supports_sanitizers
|
||||||
|
NO_CACHE_IF_FAILED
|
||||||
)
|
)
|
||||||
if(NOT linker_supports_sanitizers)
|
if(NOT linker_supports_sanitizers)
|
||||||
message(FATAL_ERROR "Linker did not accept requested flags, you are missing required libraries.")
|
message(FATAL_ERROR "Linker did not accept requested flags, you are missing required libraries.")
|
||||||
|
@ -20,7 +20,7 @@ In configuration output, this function prints a string by the following pattern:
|
|||||||
function(try_append_linker_flag flag)
|
function(try_append_linker_flag flag)
|
||||||
cmake_parse_arguments(PARSE_ARGV 1
|
cmake_parse_arguments(PARSE_ARGV 1
|
||||||
TALF # prefix
|
TALF # prefix
|
||||||
"" # options
|
"NO_CACHE_IF_FAILED" # options
|
||||||
"TARGET;VAR;SOURCE;RESULT_VAR" # one_value_keywords
|
"TARGET;VAR;SOURCE;RESULT_VAR" # one_value_keywords
|
||||||
"IF_CHECK_PASSED" # multi_value_keywords
|
"IF_CHECK_PASSED" # multi_value_keywords
|
||||||
)
|
)
|
||||||
@ -68,6 +68,10 @@ function(try_append_linker_flag flag)
|
|||||||
if(DEFINED TALF_RESULT_VAR)
|
if(DEFINED TALF_RESULT_VAR)
|
||||||
set(${TALF_RESULT_VAR} "${${result}}" PARENT_SCOPE)
|
set(${TALF_RESULT_VAR} "${${result}}" PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT ${result} AND TALF_NO_CACHE_IF_FAILED)
|
||||||
|
unset(${result} CACHE)
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user