Skip to content

Instantly share code, notes, and snippets.

@Adenilson
Created April 5, 2024 19:34
Show Gist options
  • Save Adenilson/7bc48f8dcdbf9f25e3c482f05830fc22 to your computer and use it in GitHub Desktop.
Save Adenilson/7bc48f8dcdbf9f25e3c482f05830fc22 to your computer and use it in GitHub Desktop.
mno-strict-align
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b44b4e6..2e99983 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,7 @@ if (ENABLE_SIMD_OPTIMIZATIONS)
#TODO(cavalcantii): add remaining flags as we port optimizations to RVV.
# Required by CPU features detection code.
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --target=riscv64-unknown-linux-gnu -march=rv64gcv -munaligned-access")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --target=riscv64-unknown-linux-gnu -march=rv64gcv -mno-strict-align")
endif()
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment