mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[spirv-tools] Update to v2021.1 (#17642)
* bump spirv-tools version to 2021.1 * don't use MP4 * add version updates * remove check for static build (not supported) * inc version. * Update ports/spirv-tools/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/s-/spirv-tools.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
This commit is contained in:
parent
81610d74c8
commit
63e8ef6f20
58
ports/spirv-tools/0001-don-t-use-MP4.patch
Normal file
58
ports/spirv-tools/0001-don-t-use-MP4.patch
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
|
||||||
|
index 8247f6f..e28f6ee 100644
|
||||||
|
--- a/source/CMakeLists.txt
|
||||||
|
+++ b/source/CMakeLists.txt
|
||||||
|
@@ -420,7 +420,3 @@ if(ENABLE_SPIRV_TOOLS_INSTALL)
|
||||||
|
install(FILES ${CMAKE_BINARY_DIR}/${SPIRV_TOOLS}Config.cmake DESTINATION ${PACKAGE_DIR})
|
||||||
|
endif(ENABLE_SPIRV_TOOLS_INSTALL)
|
||||||
|
|
||||||
|
-if(MSVC AND (NOT ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")))
|
||||||
|
- # Enable parallel builds across four cores for this lib
|
||||||
|
- add_definitions(/MP4)
|
||||||
|
-endif()
|
||||||
|
diff --git a/source/fuzz/CMakeLists.txt b/source/fuzz/CMakeLists.txt
|
||||||
|
index 804fcf0..4915f07 100644
|
||||||
|
--- a/source/fuzz/CMakeLists.txt
|
||||||
|
+++ b/source/fuzz/CMakeLists.txt
|
||||||
|
@@ -419,10 +419,6 @@ if(SPIRV_BUILD_FUZZER)
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/protobufs/spvtoolsfuzz.pb.cc
|
||||||
|
)
|
||||||
|
|
||||||
|
- if(MSVC AND (NOT ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")))
|
||||||
|
- # Enable parallel builds across four cores for this lib
|
||||||
|
- add_definitions(/MP4)
|
||||||
|
- endif()
|
||||||
|
|
||||||
|
spvtools_pch(SPIRV_TOOLS_FUZZ_SOURCES pch_source_fuzz)
|
||||||
|
|
||||||
|
diff --git a/source/opt/CMakeLists.txt b/source/opt/CMakeLists.txt
|
||||||
|
index 88d5658..e3faab7 100644
|
||||||
|
--- a/source/opt/CMakeLists.txt
|
||||||
|
+++ b/source/opt/CMakeLists.txt
|
||||||
|
@@ -218,11 +218,6 @@ set(SPIRV_TOOLS_OPT_SOURCES
|
||||||
|
wrap_opkill.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
-if(MSVC AND (NOT ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")))
|
||||||
|
- # Enable parallel builds across four cores for this lib
|
||||||
|
- add_definitions(/MP4)
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
spvtools_pch(SPIRV_TOOLS_OPT_SOURCES pch_source_opt)
|
||||||
|
|
||||||
|
add_library(SPIRV-Tools-opt ${SPIRV_TOOLS_LIBRARY_TYPE} ${SPIRV_TOOLS_OPT_SOURCES})
|
||||||
|
diff --git a/source/reduce/CMakeLists.txt b/source/reduce/CMakeLists.txt
|
||||||
|
index e589ad5..b93a37b 100644
|
||||||
|
--- a/source/reduce/CMakeLists.txt
|
||||||
|
+++ b/source/reduce/CMakeLists.txt
|
||||||
|
@@ -71,10 +71,6 @@ set(SPIRV_TOOLS_REDUCE_SOURCES
|
||||||
|
simple_conditional_branch_to_branch_reduction_opportunity.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
-if(MSVC AND (NOT ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")))
|
||||||
|
- # Enable parallel builds across four cores for this lib
|
||||||
|
- add_definitions(/MP4)
|
||||||
|
-endif()
|
||||||
|
|
||||||
|
spvtools_pch(SPIRV_TOOLS_REDUCE_SOURCES pch_source_reduce)
|
||||||
|
|
@ -4,11 +4,12 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO KhronosGroup/SPIRV-Tools
|
REPO KhronosGroup/SPIRV-Tools
|
||||||
REF v2020.7
|
REF v2021.1
|
||||||
SHA512 34d870e5aaaa2ad744369521efd43bdfba5e47208bb31bc0e325322e3a6edbe7686d3f4d9a6ebff6e85625e1a00811ab0162e2b8f39dd18603b7ff6548897950
|
SHA512 e8478eacb86415f75a1e5b3f66a0508b01a9f7e9d8b070eb0329ca56be137f5543dd42125a1033cb8552c01f46e11affd7fda866231b3742c66de9b4341930d5
|
||||||
PATCHES
|
PATCHES
|
||||||
cmake-install.patch
|
cmake-install.patch
|
||||||
install-config-typo.patch
|
install-config-typo.patch
|
||||||
|
0001-don-t-use-MP4.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_find_acquire_program(PYTHON3)
|
vcpkg_find_acquire_program(PYTHON3)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "spirv-tools",
|
"name": "spirv-tools",
|
||||||
"version-string": "2020.7",
|
"version-string": "2021.1",
|
||||||
"description": "API and commands for processing SPIR-V modules",
|
"description": "API and commands for processing SPIR-V modules",
|
||||||
"homepage": "https://github.com/KhronosGroup/SPIRV-Tools",
|
"homepage": "https://github.com/KhronosGroup/SPIRV-Tools",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
@ -5801,7 +5801,7 @@
|
|||||||
"port-version": 0
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"spirv-tools": {
|
"spirv-tools": {
|
||||||
"baseline": "2020.7",
|
"baseline": "2021.1",
|
||||||
"port-version": 0
|
"port-version": 0
|
||||||
},
|
},
|
||||||
"sprout": {
|
"sprout": {
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "c18f04e12fa671a9067896ccdf8c932601f81115",
|
||||||
|
"version-string": "2021.1",
|
||||||
|
"port-version": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "03084f48c2608e410a438662bab2a68ab92a5c95",
|
"git-tree": "03084f48c2608e410a438662bab2a68ab92a5c95",
|
||||||
"version-string": "2020.7",
|
"version-string": "2020.7",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user