summaryrefslogtreecommitdiff
path: root/functions.cmake
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2017-09-13 23:33:55 +0200
committerGitHub <noreply@github.com>2017-09-13 23:33:55 +0200
commit9fc84cfb5feafe7846307d76df2b9f85455b481a (patch)
treee8efa8953966ad40b53ae439f894ff06c169c799 /functions.cmake
parente866d072042f4ad9e0811aa36e338dac781c09a5 (diff)
downloadcoreclr-9fc84cfb5feafe7846307d76df2b9f85455b481a.tar.gz
coreclr-9fc84cfb5feafe7846307d76df2b9f85455b481a.tar.bz2
coreclr-9fc84cfb5feafe7846307d76df2b9f85455b481a.zip
Fix setting PAX options for crossgen (#13950)
In my previous PR that added marking executables with paxctl, I've made a mistake in the order of calling _add_library and add_dependencies. But that was hidden due to the fact that we have yet another copy of the add_library_clr and add_executable_clr functions in src/CMakeLists.txt. I have no idea how that happened. This one has overriden the other, which has hidden the problem, but also caused the crossgen to not to be modified by the paxctl. So I am fixing the order and removing the extra definitions of those functions.
Diffstat (limited to 'functions.cmake')
-rw-r--r--functions.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.cmake b/functions.cmake
index 182a69b2f5..3fb0e46e68 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -258,12 +258,12 @@ function(verify_dependencies targetName errorMessage)
endfunction()
function(add_library_clr)
- add_dependencies(${ARGV0} GeneratedEventingFiles)
_add_library(${ARGV})
+ add_dependencies(${ARGV0} GeneratedEventingFiles)
endfunction()
function(add_executable_clr)
- add_dependencies(${ARGV0} GeneratedEventingFiles)
_add_executable(${ARGV})
+ add_dependencies(${ARGV0} GeneratedEventingFiles)
endfunction()