summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jekoritz@microsoft.com>2019-04-10 14:48:31 -0700
committerJeremy Koritzinsky <jekoritz@microsoft.com>2019-04-11 10:20:32 -0700
commit736239ddebd84e78eb28afd15d54fd052675604d (patch)
tree42a6f3b61210d4d0502b0936cb28630b30bbc343
parent7c85132d46e3195cad9490809de7bbc89d675f29 (diff)
downloadcoreclr-736239ddebd84e78eb28afd15d54fd052675604d.tar.gz
coreclr-736239ddebd84e78eb28afd15d54fd052675604d.tar.bz2
coreclr-736239ddebd84e78eb28afd15d54fd052675604d.zip
Generate ClrJit.exports.def at compile time on Windows.
-rw-r--r--src/jit/CMakeLists.txt14
-rw-r--r--src/jit/ClrJit.exports11
2 files changed, 9 insertions, 16 deletions
diff --git a/src/jit/CMakeLists.txt b/src/jit/CMakeLists.txt
index 0977fc1ba1..3d8a24b77b 100644
--- a/src/jit/CMakeLists.txt
+++ b/src/jit/CMakeLists.txt
@@ -295,20 +295,8 @@ set (CLRJIT_EXPORTS ${CMAKE_CURRENT_LIST_DIR}/ClrJit.exports)
if(WIN32)
add_precompiled_header(jitpch.h ../jitpch.cpp SOURCES)
-
- # Create .def file containing a list of exports preceeded by
- # 'EXPORTS'. The file "ClrJit.exports" already contains the list, so we
- # massage it into the correct format here to create "ClrJit.exports.def".
set(JIT_EXPORTS_FILE ${CMAKE_CURRENT_BINARY_DIR}/ClrJit.exports.def)
- set(JIT_EXPORTS_FILE_TEMP ${JIT_EXPORTS_FILE}.txt)
- file(READ ${CLRJIT_EXPORTS} exports_list)
- file(WRITE ${JIT_EXPORTS_FILE_TEMP} "LIBRARY CLRJIT\n")
- file(APPEND ${JIT_EXPORTS_FILE_TEMP} "EXPORTS\n")
- file(APPEND ${JIT_EXPORTS_FILE_TEMP} ${exports_list})
-
- # Copy the file only if it has changed.
- execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different
- ${JIT_EXPORTS_FILE_TEMP} ${JIT_EXPORTS_FILE})
+ preprocess_def_file (${CLRJIT_EXPORTS} ${JIT_EXPORTS_FILE})
set(SHARED_LIB_SOURCES ${SOURCES} ${JIT_EXPORTS_FILE})
else()
diff --git a/src/jit/ClrJit.exports b/src/jit/ClrJit.exports
index 0126e63b4d..60a223bab1 100644
--- a/src/jit/ClrJit.exports
+++ b/src/jit/ClrJit.exports
@@ -1,3 +1,8 @@
-getJit
-jitStartup
-sxsJitStartup
+; Licensed to the .NET Foundation under one or more agreements.
+; The .NET Foundation licenses this file to you under the MIT license.
+; See the LICENSE file in the project root for more information.
+
+EXPORTS
+ getJit
+ jitStartup
+ sxsJitStartup