Skip to content

Commit

Permalink
Make: Removed march=native
Browse files Browse the repository at this point in the history
It's wrong to use `native` when building on Github Runner
  • Loading branch information
ishkhan42 authored Mar 29, 2023
1 parent f8dbe1a commit 323188f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmax-errors=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()

# Check if we are running on Linux
Expand Down

0 comments on commit 323188f

Please sign in to comment.