aboutsummaryrefslogtreecommitdiff
path: root/ports/jemalloc/fix-utilities.patch
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2017-09-21 12:22:00 -0700
committerGitHub <noreply@github.com>2017-09-21 12:22:00 -0700
commitfac96eb344a500405ab65b7e7f3755af0ad00b7e (patch)
treef9e3376ca1a8f2de408e087e42ae393f224d6c42 /ports/jemalloc/fix-utilities.patch
parent46db0f03fcb42d9f738474885fda372160362e44 (diff)
parent1bbce1ee844262647f994afd5f31da12d938e7ee (diff)
downloadvcpkg-fac96eb344a500405ab65b7e7f3755af0ad00b7e.tar.gz
vcpkg-fac96eb344a500405ab65b7e7f3755af0ad00b7e.zip
Merge branch 'master' into master
Diffstat (limited to 'ports/jemalloc/fix-utilities.patch')
-rw-r--r--ports/jemalloc/fix-utilities.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/ports/jemalloc/fix-utilities.patch b/ports/jemalloc/fix-utilities.patch
new file mode 100644
index 000000000..32c39e0b3
--- /dev/null
+++ b/ports/jemalloc/fix-utilities.patch
@@ -0,0 +1,30 @@
+diff --git a/Utilities.cmake b/Utilities.cmake
+index 562e948..d2d3530 100644
+--- a/Utilities.cmake
++++ b/Utilities.cmake
+@@ -633,9 +633,11 @@ file(TO_NATIVE_PATH "${file_path}" ntv_file_path)
+ # This converts #undefs into #cmakedefines so configure_file can handle it
+ set(PS_CMD
+ "Get-Content \"${ntv_file_path}\" |
+-ForEach {
++ForEach {
+ if($_ -match '^#undef[ \t]*[^ \t]*')
+- { $_ -replace '^#undef[ \t]*([^ \t]*)','#cmakedefine $1 @$1@' } else {$_}}"
++ { $_ -replace '^#undef[ \t]*([^ \t]*)','#cmakedefine $1 @$1@' } else {$_}
++} |
++Set-Content \"${ntv_file_path}.cmake\""
+ )
+
+ if(EXISTS ${file_path})
+@@ -646,9 +648,8 @@ if(EXISTS ${file_path})
+ # Convert autoconf .in into a cmake .in
+ execute_process(COMMAND powershell -Command "${PS_CMD}"
+ RESULT_VARIABLE error_level
+- ERROR_VARIABLE error_output
+- OUTPUT_FILE ${file_path}.cmake)
+-
++ ERROR_VARIABLE error_output)
++
+ if(NOT ${error_level} EQUAL 0)
+ message(FATAL_ERROR "Powershell completed with ${error_level} : ${error_output}")
+ endif()