aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libhydrogen/no-arch.patch
blob: 2649010b37ba6082b4f294fd5200269b0bfe44d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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