diff --git a/CMakeLists.txt b/CMakeLists.txt index 54ae367..57e9027 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,9 +44,9 @@ target_link_libraries(r8forge_core PUBLIC Threads::Threads) # 别再 set(CMAKE_CXX_FLAGS ...) 了:那会把默认 flag 整个换掉,MSVC 下丢 /EHsc、 # 还会把 -O3 塞进 Debug 和 /RTC1 打架。Release 配置本来就带 -O3 / /O2 和 NDEBUG。 -if(NOT MSVC) - add_compile_options($<$:-march=native>) -endif() +# Release 配置本来就有 -O3 / /O2;刻意不加 -march=native: +# clang 14(Debian arm64)直接报 does not support '-march=native', +# 而且产物要能在别的 arm64 机器上跑。 add_executable(r8forge tests/asm_test.cc) target_link_libraries(r8forge r8forge_core) diff --git a/src/tape.cc b/src/tape.cc index 03f8203..c8fb6c6 100644 --- a/src/tape.cc +++ b/src/tape.cc @@ -2,7 +2,8 @@ #include "r8forge/geometry.hh" -#include `n#include +#include +#include namespace {