Skip to content

Commit

Permalink
Compatibility with Basic CPUs (#3146)
Browse files Browse the repository at this point in the history
Some servers or vps now come with modifications for basic cpu such as:
QEMU Virtual CPU version 2.5+, this function makes it possible to run
canary
  • Loading branch information
odisk777 authored Dec 9, 2024
1 parent 8891f3a commit a81297a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ endif()
# *****************************************************************************
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)

# Configure build options for compatibility with commodity CPUs
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64 -mtune=generic -mno-avx -mno-sse4")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=x86-64 -mtune=generic -mno-avx -mno-sse4")


# *****************************************************************************
# Include cmake tools
# *****************************************************************************
Expand Down

0 comments on commit a81297a

Please sign in to comment.