cmake: un-hardcode native architecture (#72)

This commit is contained in:
Alexandre Bouvier 2024-09-08 12:09:59 +00:00 committed by GitHub
parent 5830d66c4b
commit 71c2185bf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ jobs:
- name: Build RPCSX
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release && \
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_INIT="-march=native" && \
cmake --build build -j4
- name: Upload RPCSX

View File

@ -64,7 +64,7 @@ add_executable(rpcsx-os
target_include_directories(rpcsx-os PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(rpcsx-os PUBLIC orbis::kernel amdgpu::bridge rx libcrypto unwind unwind-x86_64 xbyak)
target_link_options(rpcsx-os PUBLIC "LINKER:-Ttext-segment,0x0000010000000000")
target_compile_options(rpcsx-os PRIVATE "-march=native")
target_compile_options(rpcsx-os PRIVATE "-mfsgsbase")
set_target_properties(rpcsx-os PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
install(TARGETS rpcsx-os RUNTIME DESTINATION bin)