mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-11-26 21:00:35 +00:00
cmake: un-hardcode native architecture (#72)
This commit is contained in:
parent
5830d66c4b
commit
71c2185bf6
2
.github/workflows/rpcsx.yml
vendored
2
.github/workflows/rpcsx.yml
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user