diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libhydrogen/no-arch.patch | |
Diffstat (limited to 'vcpkg/ports/libhydrogen/no-arch.patch')
| -rw-r--r-- | vcpkg/ports/libhydrogen/no-arch.patch | 25 |
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 |