aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libhydrogen/no-arch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libhydrogen/no-arch.patch')
-rw-r--r--vcpkg/ports/libhydrogen/no-arch.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/libhydrogen/no-arch.patch b/vcpkg/ports/libhydrogen/no-arch.patch
new file mode 100644
index 0000000..2649010
--- /dev/null
+++ b/vcpkg/ports/libhydrogen/no-arch.patch
@@ -0,0 +1,25 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 91e2bf1..7333479 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -39,11 +39,6 @@ set(arduino_files "library.properties")
+
+ # Compile options
+
+-get_setting(target_arch STRING "Target system architecture (fed to the compiler's -march=XXX).")
+-if(NOT target_arch AND NOT CMAKE_CROSSCOMPILING)
+- set(target_arch native)
+-endif()
+-
+ get_setting(target_device STRING "Target device identifier (defines HYDRO_TARGET_DEVICE_XXX).")
+
+ set(compile_options
+@@ -52,7 +47,7 @@ set(compile_options
+ # ---- Definitions ----
+ $<$<BOOL:${target_device}>:-DHYDRO_TARGET_DEVICE_${target_device}>
+ # ---- Optimizations ----
+- -Os $<$<BOOL:${target_arch}>:-march=${target_arch}> -fno-exceptions
++ -Os -fno-exceptions
+ # ---- Warnings ----
+ -Wall
+ -Wextra