summaryrefslogtreecommitdiff
path: root/functions.cmake
diff options
context:
space:
mode:
authorchunseoklee <chunseoklee@naver.com>2017-06-02 01:51:31 +0900
committerJan Vorlicek <janvorli@microsoft.com>2017-06-01 18:51:31 +0200
commitdde63bc1aa39aabae77fb89aad583483965c523e (patch)
tree280f184bcbcc686137c039e6df87f4cd6ac71c87 /functions.cmake
parentf68e0e85b7f3caee90481857b67f418d68f3361e (diff)
downloadcoreclr-dde63bc1aa39aabae77fb89aad583483965c523e.tar.gz
coreclr-dde63bc1aa39aabae77fb89aad583483965c523e.tar.bz2
coreclr-dde63bc1aa39aabae77fb89aad583483965c523e.zip
gdbjit symbols exported (#11739)
* multiple export files as input for generate_exports_file Now, generate_exports_file is able to process multiple input arguments. This feature is useful when you want to export additional symbols depending on compile time dependannt feature(-D option.) * export file for gdbjit added src/dlls/mscoree/gdbjit_unixexports.src file added To enable gdbjit feature, libcoreclr.so should have __jit_xxx symbols. Current tizen build system removes .symtab section during rpm debuginfo build. This patch moves __jit_xx symbols into .dynsym section.
Diffstat (limited to 'functions.cmake')
-rw-r--r--functions.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/functions.cmake b/functions.cmake
index cbcc70f4d1..cf4d08faaf 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -86,7 +86,10 @@ 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)
@@ -96,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}