Skip to content

Commit

Permalink
cmake: un-hardcode native architecture (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
abouvier authored Sep 8, 2024
1 parent 5830d66 commit 71c2185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rpcsx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rpcsx-os/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 71c2185

Please sign in to comment.