aboutsummaryrefslogtreecommitdiff
path: root/ports/jemalloc/fix-utilities.patch
diff options
context:
space:
mode:
authorjasjuang <jasjuang@gmail.com>2017-09-22 08:14:11 -0700
committerjasjuang <jasjuang@gmail.com>2017-09-22 08:14:11 -0700
commitab50491732fbcb5e3ddbf5aa494080b67aef0f6d (patch)
treeb4eabdd9e6b73722ba51f6e34206b32f3b11942a /ports/jemalloc/fix-utilities.patch
parent2b178b3cb6e166cec2fa7fe3741017ac49a71d04 (diff)
parent011368ef9e1754715873eb0a298f0d069210ea6c (diff)
downloadvcpkg-ab50491732fbcb5e3ddbf5aa494080b67aef0f6d.tar.gz
vcpkg-ab50491732fbcb5e3ddbf5aa494080b67aef0f6d.zip
Merge remote-tracking branch 'upstream/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()