mirror of https://github.com/microsoft/vcpkg.git
[boost] Look for /Zi and other flags (#25863)
* minor fixes to the boost build helper * v db * use the correct extra % instead of ' * v db * bump port-version * v db
This commit is contained in:
parent
3887833719
commit
4614a12dd2
|
|
@ -9,7 +9,7 @@ set(USER_CONFIG_TOOLSET_OPTIONS "")
|
|||
set(USER_CONFIG_EXTRA_LINES "")
|
||||
set(USER_CONFIG_REQUIREMENTS "")
|
||||
|
||||
set(B2_OPTIONS)
|
||||
set(B2_OPTIONS "")
|
||||
|
||||
include("${VCPKG_CMAKE_VARS_FILE}")
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ if(VCPKG_DETECTED_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
|||
list(JOIN libpath_args " " libpath_arg)
|
||||
string(APPEND COMPILEFLAGS " ${libpath_arg} /D_WIN32_WINNT=0x0A00")
|
||||
list(APPEND B2_OPTIONS windows-api=store)
|
||||
list(APPEND B2_OPTIONS linkflags=WindowsApp.lib)
|
||||
list(APPEND B2_OPTIONS linkflags=WindowsApp.lib) # TODO: Fix this; Probably should use a VCPKG_DETECTED_ variable and also be applied in the !store case
|
||||
endif()
|
||||
|
||||
set(USER_CONFIG_TOOLSET_INVOCATION_COMMAND "\"${VCPKG_DETECTED_CMAKE_CXX_COMPILER}\"")
|
||||
|
|
@ -117,10 +117,23 @@ string(APPEND CFLAGS "${COMPILEFLAGS}")
|
|||
foreach(var CXXFLAGS CFLAGS LDFLAGS ARFLAGS)
|
||||
string(REPLACE [[\]] [[\\]] ${var} "${${var}}")
|
||||
string(REPLACE [["]] [[\"]] ${var} "${${var}}")
|
||||
if(WIN32)
|
||||
# env variables need extra %%var%% to be not expanded early
|
||||
string(REGEX REPLACE [[(%[^%]+%)]] [[%\1%]] ${var} "${${var}}")
|
||||
# remove PDB flag, until the pdb install rule of boost-build can be deactivated.
|
||||
string(REGEX REPLACE "-PDB:[^ ]+" "" ${var} "${${var}}")
|
||||
endif()
|
||||
string(REGEX REPLACE "[ \t\r\n]+" " " ${var} "${${var}}")
|
||||
string(STRIP "${${var}}" ${var})
|
||||
endforeach()
|
||||
|
||||
if(CFLAGS MATCHES "-Zi" OR CXXFLAGS MATCHES "-Zi")
|
||||
list(APPEND B2_OPTIONS
|
||||
debug-store=database
|
||||
pch=off
|
||||
)
|
||||
endif()
|
||||
|
||||
if(USER_CONFIG_TOOLSET STREQUAL "msvc")
|
||||
file(TO_CMAKE_PATH "${CMAKE_CURRENT_LIST_DIR}/nothing.bat" NOTHING_BAT)
|
||||
string(APPEND USER_CONFIG_TOOLSET_OPTIONS
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "boost-modular-build-helper",
|
||||
"version": "1.79.0",
|
||||
"port-version": 6,
|
||||
"port-version": 7,
|
||||
"description": "Internal vcpkg port used to build Boost libraries",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "cca1e2f883cfd638a53964027473a00e6b571e49",
|
||||
"version": "1.79.0",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "9428ba48caa81512147423f26559c7a57b37e71b",
|
||||
"version": "1.79.0",
|
||||
|
|
|
|||
|
|
@ -842,7 +842,7 @@
|
|||
},
|
||||
"boost-modular-build-helper": {
|
||||
"baseline": "1.79.0",
|
||||
"port-version": 6
|
||||
"port-version": 7
|
||||
},
|
||||
"boost-move": {
|
||||
"baseline": "1.79.0",
|
||||
|
|
|
|||
Loading…
Reference in New Issue