aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWolfgang Stöggl <c72578@yahoo.de>2019-10-22 00:25:58 +0200
committerVictor Romero <romerosanchezv@gmail.com>2019-10-21 15:25:58 -0700
commit6e30ee1ae8b560c53b5e72cf7a9dcd8176cedb50 (patch)
tree2c807730d03d7a1689a4a3effb067d137f1c22a2 /scripts
parent6f37346354774bea181016fef3238c8d3770b6f4 (diff)
downloadvcpkg-6e30ee1ae8b560c53b5e72cf7a9dcd8176cedb50.tar.gz
vcpkg-6e30ee1ae8b560c53b5e72cf7a9dcd8176cedb50.zip
vcpkg_configure_meson - Remove compiler flag /Oi (#8667)
Removing the compiler flag /Oi (Generate Intrinsic Functions) allows meson to detect functions like memmove, memset correctly. This is relevant to meson configure for fribidi (see fribidi/meson.build). This fixes the following "issues" (from fribidi meson-log.txt): testfile.c(17): error C2168: 'memmove': too few actual parameters for intrinsic function Checking for function "memmove" : NO testfile.c(17): error C2168: 'memset': too few actual parameters for intrinsic function Checking for function "memset" : NO And enables detection of the functions: Checking for function "memmove" : YES Checking for function "memset" : YES
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_configure_meson.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/cmake/vcpkg_configure_meson.cmake b/scripts/cmake/vcpkg_configure_meson.cmake
index f907c76f1..6dfb266cf 100644
--- a/scripts/cmake/vcpkg_configure_meson.cmake
+++ b/scripts/cmake/vcpkg_configure_meson.cmake
@@ -12,14 +12,14 @@ function(vcpkg_configure_meson)
set(MESON_DEBUG_CFLAGS "${MESON_DEBUG_CFLAGS} /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1")
set(MESON_DEBUG_CXXFLAGS "${MESON_DEBUG_CXXFLAGS} /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1")
- set(MESON_RELEASE_CFLAGS "${MESON_RELEASE_CFLAGS} /MD /O2 /Oi /Gy /DNDEBUG /Z7")
- set(MESON_RELEASE_CXXFLAGS "${MESON_RELEASE_CXXFLAGS} /MD /O2 /Oi /Gy /DNDEBUG /Z7")
+ set(MESON_RELEASE_CFLAGS "${MESON_RELEASE_CFLAGS} /MD /O2 /Gy /DNDEBUG /Z7")
+ set(MESON_RELEASE_CXXFLAGS "${MESON_RELEASE_CXXFLAGS} /MD /O2 /Gy /DNDEBUG /Z7")
elseif(DEFINED VCPKG_CRT_LINKAGE AND VCPKG_CRT_LINKAGE STREQUAL static)
set(MESON_DEBUG_CFLAGS "${MESON_DEBUG_CFLAGS} /D_DEBUG /MTd /Z7 /Ob0 /Od /RTC1")
set(MESON_DEBUG_CXXFLAGS "${MESON_DEBUG_CXXFLAGS} /D_DEBUG /MTd /Z7 /Ob0 /Od /RTC1")
- set(MESON_RELEASE_CFLAGS "${MESON_RELEASE_CFLAGS} /MT /O2 /Oi /Gy /DNDEBUG /Z7")
- set(MESON_RELEASE_CXXFLAGS "${MESON_RELEASE_CXXFLAGS} /MT /O2 /Oi /Gy /DNDEBUG /Z7")
+ set(MESON_RELEASE_CFLAGS "${MESON_RELEASE_CFLAGS} /MT /O2 /Gy /DNDEBUG /Z7")
+ set(MESON_RELEASE_CXXFLAGS "${MESON_RELEASE_CXXFLAGS} /MT /O2 /Gy /DNDEBUG /Z7")
endif()
set(MESON_COMMON_LDFLAGS "${MESON_COMMON_LDFLAGS} /DEBUG")