diff options
author | Gleb Balykov <g.balykov@samsung.com> | 2019-05-13 20:14:28 +0300 |
---|---|---|
committer | Jeremy Koritzinsky <jekoritz@microsoft.com> | 2019-05-13 10:14:27 -0700 |
commit | 24cdacaeb1e42a92051b32a6c4051b7a12ff2770 (patch) | |
tree | e699704c2e4e7903712c43c3de96de298f335435 /functions.cmake | |
parent | 42a4b41cae99215da49388dad4dc2810f83365c3 (diff) | |
download | coreclr-24cdacaeb1e42a92051b32a6c4051b7a12ff2770.tar.gz coreclr-24cdacaeb1e42a92051b32a6c4051b7a12ff2770.tar.bz2 coreclr-24cdacaeb1e42a92051b32a6c4051b7a12ff2770.zip |
Fix build error for mscoree coreclr.exports (#24547)
This partially reverts #23853
Diffstat (limited to 'functions.cmake')
-rw-r--r-- | functions.cmake | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/functions.cmake b/functions.cmake index d20a574373..d868445910 100644 --- a/functions.cmake +++ b/functions.cmake @@ -86,7 +86,11 @@ function(preprocess_def_file inputFilename outputFilename) PROPERTIES GENERATED TRUE) endfunction() -function(generate_exports_file inputFilename outputFilename) +function(generate_exports_file) + set(INPUT_LIST ${ARGN}) + list(GET INPUT_LIST -1 outputFilename) + list(REMOVE_AT INPUT_LIST -1) + if(CMAKE_SYSTEM_NAME STREQUAL Darwin) set(AWK_SCRIPT generateexportedsymbols.awk) else() @@ -95,8 +99,8 @@ function(generate_exports_file inputFilename outputFilename) add_custom_command( OUTPUT ${outputFilename} - COMMAND ${AWK} -f ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} ${inputFilename} >${outputFilename} - DEPENDS ${inputFilename} ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} + COMMAND ${AWK} -f ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} ${INPUT_LIST} >${outputFilename} + DEPENDS ${INPUT_LIST} ${CMAKE_SOURCE_DIR}/${AWK_SCRIPT} COMMENT "Generating exports file ${outputFilename}" ) set_source_files_properties(${outputFilename} |