build: remove native arch flags

Fixes #72
This commit is contained in:
André 2025-06-06 09:24:33 +02:00
parent 87072dc6c8
commit e77a9b3477
No known key found for this signature in database

View File

@ -57,10 +57,6 @@ set(WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
# Find and include SDL2 library
find_package(SDL2 REQUIRED)
# Remove ARM-specific compile and linker options
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
# Add compile definitions based on the selected options
add_compile_definitions($<$<BOOL:${LV_USE_DRAW_SDL}>:LV_USE_DRAW_SDL=1>)
add_compile_definitions($<$<BOOL:${LV_USE_LIBPNG}>:LV_USE_LIBPNG=1>)
@ -191,4 +187,4 @@ if (ASAN)
else()
message(STATUS "AddressSanitizer disabled")
endif()
endif()
endif()