Created
April 5, 2024 19:34
-
-
Save Adenilson/7bc48f8dcdbf9f25e3c482f05830fc22 to your computer and use it in GitHub Desktop.
mno-strict-align
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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