mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 07:49:01 +08:00
fix the port build failed on Linux(Ubuntu 18.04).
This commit is contained in:
parent
668c960d8a
commit
7f3e185316
13
ports/itpp/fix-linux.patch
Normal file
13
ports/itpp/fix-linux.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h
|
||||
index ccbf182..a3d5472 100644
|
||||
--- a/itpp/base/random_dsfmt.h
|
||||
+++ b/itpp/base/random_dsfmt.h
|
||||
@@ -299,7 +299,7 @@ private:
|
||||
*/
|
||||
static void do_recursion(typename Context::w128_t *r, typename Context::w128_t *a, typename Context::w128_t *b, typename Context::w128_t *lung) {
|
||||
#if defined(__SSE2__)
|
||||
- const unsigned int SSE2_SHUFF = 0x1bU;
|
||||
+#define SSE2_SHUFF 0x1bU
|
||||
|
||||
__m128i x = a->si;
|
||||
__m128i z = _mm_slli_epi64(x, SL1);
|
@ -20,6 +20,11 @@ vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES fix-uwp.patch
|
||||
)
|
||||
elseif(VCPKG_CMAKE_SYSTEM_NAME AND VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES fix-linux.patch
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
|
Loading…
Reference in New Issue
Block a user