aboutsummaryrefslogtreecommitdiff
path: root/ports/simdutf
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2021-09-03 22:16:43 -0700
committerGitHub <noreply@github.com>2021-09-03 22:16:43 -0700
commit690f41497a2ee8ad7c335e07a9d39f78badc89ee (patch)
treea90ad6c0dacfe7d2ed1d0b8947f6a7e4bf11d09c /ports/simdutf
parenta4d0471091cecf75289ecffd6465995781d1a4c5 (diff)
downloadvcpkg-690f41497a2ee8ad7c335e07a9d39f78badc89ee.tar.gz
vcpkg-690f41497a2ee8ad7c335e07a9d39f78badc89ee.zip
[simdutf] Disable benchmarks and tests. (#19987)
Diffstat (limited to 'ports/simdutf')
-rw-r--r--ports/simdutf/disable-tests-and-benchmarks.patch22
-rw-r--r--ports/simdutf/portfile.cmake4
-rw-r--r--ports/simdutf/vcpkg.json1
3 files changed, 26 insertions, 1 deletions
diff --git a/ports/simdutf/disable-tests-and-benchmarks.patch b/ports/simdutf/disable-tests-and-benchmarks.patch
new file mode 100644
index 000000000..d621f6d7a
--- /dev/null
+++ b/ports/simdutf/disable-tests-and-benchmarks.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5453644..d3f2869 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,17 +14,10 @@ include(cmake/simdutf-flags.cmake)
+
+ set(SIMDUTF_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+
+-enable_testing()
+ add_subdirectory(src)
+-add_subdirectory(tests)
+
+
+
+-if(CMAKE_CXX_COMPILER_ID MATCHES GNU AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 8.0)
+- message(STATUS "The benchmark tool requires GCC 8.0 or better.")
+-else()
+- add_subdirectory(benchmarks)
+-endif()
+
+
+ # ---- Install rules ----
diff --git a/ports/simdutf/portfile.cmake b/ports/simdutf/portfile.cmake
index c9e6bead8..809247a8c 100644
--- a/ports/simdutf/portfile.cmake
+++ b/ports/simdutf/portfile.cmake
@@ -2,8 +2,10 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO simdutf/simdutf
REF v1.0.0
- SHA512 3ab09aa61cb9765bf1a77de59c5b823ee58ae5e4badfd5dd70e511fd4f378f8d3917a5b577e7f275720b975740344968132ce0b3f628452bde67f2ab6cc82337
+ SHA512 3ab09aa61cb9765bf1a77de59c5b823ee58ae5e4badfd5dd70e511fd4f378f8d3917a5b577e7f275720b975740344968132ce0b3f628452bde67f2ab6cc82337
HEAD_REF master
+ PATCHES
+ disable-tests-and-benchmarks.patch
)
vcpkg_cmake_configure(
diff --git a/ports/simdutf/vcpkg.json b/ports/simdutf/vcpkg.json
index 67f03f8e2..68ddc24a2 100644
--- a/ports/simdutf/vcpkg.json
+++ b/ports/simdutf/vcpkg.json
@@ -1,6 +1,7 @@
{
"name": "simdutf",
"version-semver": "1.0.0",
+ "port-version": 1,
"description": "Unicode validation and transcoding at billions of characters per second",
"homepage": "https://github.com/simdutf/simdutf",
"dependencies": [