mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
[tensorflow-common] remove single quotes from vcpkg flags (#21869)
* [vcpkg_acquire_msys] Update bzip2 to 1.0.8-2 * [tensorflow-common] remove single quotes from vcpkg flags They are escaped like '\'-mtune=native\'' which leads to a compiler error: cc: error: unrecognized command line option '-mtune=native' Set via: set(VCPKG_CXX_FLAGS "-mtune=native")
This commit is contained in:
parent
ae163065b2
commit
1bca1f0203
@ -200,17 +200,17 @@ foreach(BUILD_TYPE dbg rel)
|
||||
separate_arguments(VCPKG_C_FLAGS ${PLATFORM_COMMAND} ${VCPKG_C_FLAGS})
|
||||
separate_arguments(VCPKG_C_FLAGS_DEBUG ${PLATFORM_COMMAND} ${VCPKG_C_FLAGS_DEBUG})
|
||||
foreach(OPT IN LISTS VCPKG_C_FLAGS VCPKG_C_FLAGS_DEBUG)
|
||||
list(APPEND COPTS "--copt='${OPT}'")
|
||||
list(APPEND COPTS "--copt=${OPT}")
|
||||
endforeach()
|
||||
separate_arguments(VCPKG_CXX_FLAGS ${PLATFORM_COMMAND} ${VCPKG_CXX_FLAGS})
|
||||
separate_arguments(VCPKG_CXX_FLAGS_DEBUG ${PLATFORM_COMMAND} ${VCPKG_CXX_FLAGS_DEBUG})
|
||||
foreach(OPT IN LISTS VCPKG_CXX_FLAGS VCPKG_CXX_FLAGS_DEBUG)
|
||||
list(APPEND CXXOPTS "--cxxopt='${OPT}'")
|
||||
list(APPEND CXXOPTS "--cxxopt=${OPT}")
|
||||
endforeach()
|
||||
separate_arguments(VCPKG_LINKER_FLAGS ${PLATFORM_COMMAND} ${VCPKG_LINKER_FLAGS})
|
||||
separate_arguments(VCPKG_LINKER_FLAGS_DEBUG ${PLATFORM_COMMAND} ${VCPKG_LINKER_FLAGS_DEBUG})
|
||||
foreach(OPT IN LISTS VCPKG_LINKER_FLAGS VCPKG_LINKER_FLAGS_DEBUG)
|
||||
list(APPEND LINKOPTS "--linkopt='${OPT}'")
|
||||
list(APPEND LINKOPTS "--linkopt=${OPT}")
|
||||
endforeach()
|
||||
else()
|
||||
set(BUILD_OPTS --compilation_mode=opt)
|
||||
@ -218,17 +218,17 @@ foreach(BUILD_TYPE dbg rel)
|
||||
separate_arguments(VCPKG_C_FLAGS ${PLATFORM_COMMAND} ${VCPKG_C_FLAGS})
|
||||
separate_arguments(VCPKG_C_FLAGS_RELEASE ${PLATFORM_COMMAND} ${VCPKG_C_FLAGS_RELEASE})
|
||||
foreach(OPT IN LISTS VCPKG_C_FLAGS VCPKG_C_FLAGS_RELEASE)
|
||||
list(APPEND COPTS "--copt='${OPT}'")
|
||||
list(APPEND COPTS "--copt=${OPT}")
|
||||
endforeach()
|
||||
separate_arguments(VCPKG_CXX_FLAGS ${PLATFORM_COMMAND} ${VCPKG_CXX_FLAGS})
|
||||
separate_arguments(VCPKG_CXX_FLAGS_RELEASE ${PLATFORM_COMMAND} ${VCPKG_CXX_FLAGS_RELEASE})
|
||||
foreach(OPT IN LISTS VCPKG_CXX_FLAGS VCPKG_CXX_FLAGS_RELEASE)
|
||||
list(APPEND CXXOPTS "--cxxopt='${OPT}'")
|
||||
list(APPEND CXXOPTS "--cxxopt=${OPT}")
|
||||
endforeach()
|
||||
separate_arguments(VCPKG_LINKER_FLAGS ${PLATFORM_COMMAND} ${VCPKG_LINKER_FLAGS})
|
||||
separate_arguments(VCPKG_LINKER_FLAGS_RELEASE ${PLATFORM_COMMAND} ${VCPKG_LINKER_FLAGS_RELEASE})
|
||||
foreach(OPT IN LISTS VCPKG_LINKER_FLAGS VCPKG_LINKER_FLAGS_RELEASE)
|
||||
list(APPEND LINKOPTS "--linkopt='${OPT}'")
|
||||
list(APPEND LINKOPTS "--linkopt=${OPT}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "tensorflow-common",
|
||||
"version-semver": "2.7.0",
|
||||
"port-version": 1,
|
||||
"description": "This meta package holds common files for the C [tensorflow] and the C++ [tensorflow-cc] API version of TensorFlow but is not installable on its own.",
|
||||
"homepage": "https://github.com/tensorflow/tensorflow"
|
||||
}
|
||||
|
@ -414,8 +414,8 @@ function(vcpkg_acquire_msys out_msys_root)
|
||||
DEPS mingw-w64-x86_64-bzip2 mingw-w64-x86_64-expat mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-libffi mingw-w64-x86_64-mpdecimal mingw-w64-x86_64-ncurses mingw-w64-x86_64-openssl mingw-w64-x86_64-sqlite3 mingw-w64-x86_64-tcl mingw-w64-x86_64-tk mingw-w64-x86_64-xz mingw-w64-x86_64-zlib
|
||||
)
|
||||
z_vcpkg_acquire_msys_declare_package(
|
||||
URL "https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-bzip2-1.0.8-1-any.pkg.tar.xz"
|
||||
SHA512 6e01b26a2144f99ca00406dbce5b8c3e928ec8a3ff77e0b741b26aaf9c927e9bea8cb1b5f38cd59118307e10dd4523a0ea2a1ea61f798f99e6d605ef1d100503
|
||||
URL "https://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-bzip2-1.0.8-2-any.pkg.tar.zst"
|
||||
SHA512 4f7ba44189d953d4d00e7bbf5a7697233f759c92847c074f0f2888d2a641c59ce4bd3c39617adac0ad7b53c5836e529f9ffd889f976444016976bb517e5c24a2
|
||||
DEPS mingw-w64-x86_64-gcc-libs
|
||||
)
|
||||
z_vcpkg_acquire_msys_declare_package(
|
||||
|
@ -6706,7 +6706,7 @@
|
||||
},
|
||||
"tensorflow-common": {
|
||||
"baseline": "2.7.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"tensorpipe": {
|
||||
"baseline": "2021-04-26",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4c81239401e4304b124ed215960cdcdf19611e47",
|
||||
"version-semver": "2.7.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "eb9e0e1345847b72eccecd5a6b85a441f034e1a7",
|
||||
"version-semver": "2.7.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user