mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 18:24:55 +00:00
Fixes for Apple Silicon
Updates amuse, hecl, nod, specter
This commit is contained in:
@@ -131,6 +131,7 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL x86_64)
|
||||||
if(${URDE_VECTOR_ISA} STREQUAL "native")
|
if(${URDE_VECTOR_ISA} STREQUAL "native")
|
||||||
add_compile_options(-march=native)
|
add_compile_options(-march=native)
|
||||||
message(STATUS "Building with native ISA")
|
message(STATUS "Building with native ISA")
|
||||||
@@ -154,6 +155,7 @@ else()
|
|||||||
else()
|
else()
|
||||||
message(STATUS "Building with x87 Vector ISA")
|
message(STATUS "Building with x87 Vector ISA")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
check_cxx_compiler_flag(-fno-plt HAS_NO_PLT)
|
check_cxx_compiler_flag(-fno-plt HAS_NO_PLT)
|
||||||
|
|||||||
@@ -85,6 +85,24 @@ add_executable(urde WIN32 MACOSX_BUNDLE
|
|||||||
Resource.hpp Resource.cpp
|
Resource.hpp Resource.cpp
|
||||||
Camera.hpp Camera.cpp
|
Camera.hpp Camera.cpp
|
||||||
GameMode.hpp GameMode.cpp)
|
GameMode.hpp GameMode.cpp)
|
||||||
|
|
||||||
|
target_compile_definitions(urde PUBLIC URDE_DLPACKAGE="${URDE_DLPACKAGE}")
|
||||||
|
|
||||||
|
target_include_directories(urde PUBLIC
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/Runtime # FIXME atdna cmake issue
|
||||||
|
${CMAKE_BINARY_DIR})
|
||||||
|
|
||||||
|
target_link_libraries(urde
|
||||||
|
UrdeIcons
|
||||||
|
UrdeBadging
|
||||||
|
RuntimeCommon
|
||||||
|
amuse
|
||||||
|
RetroDataSpec
|
||||||
|
kabufuda
|
||||||
|
${URDE_PLAT_LIBS})
|
||||||
|
|
||||||
target_atdna(urde atdna_Space.cpp Space.hpp)
|
target_atdna(urde atdna_Space.cpp Space.hpp)
|
||||||
target_atdna(urde atdna_ResourceBrowser.cpp ResourceBrowser.hpp)
|
target_atdna(urde atdna_ResourceBrowser.cpp ResourceBrowser.hpp)
|
||||||
target_atdna(urde atdna_ModelViewer.cpp ModelViewer.hpp)
|
target_atdna(urde atdna_ModelViewer.cpp ModelViewer.hpp)
|
||||||
@@ -92,15 +110,6 @@ target_atdna(urde atdna_ParticleEditor.cpp ParticleEditor.hpp)
|
|||||||
target_atdna(urde atdna_InformationCenter.cpp InformationCenter.hpp)
|
target_atdna(urde atdna_InformationCenter.cpp InformationCenter.hpp)
|
||||||
target_atdna(urde atdna_GameMode.cpp GameMode.hpp)
|
target_atdna(urde atdna_GameMode.cpp GameMode.hpp)
|
||||||
|
|
||||||
target_compile_definitions(urde PUBLIC URDE_DLPACKAGE="${URDE_DLPACKAGE}")
|
|
||||||
|
|
||||||
target_include_directories(urde PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR})
|
|
||||||
|
|
||||||
target_link_libraries(urde
|
|
||||||
UrdeIcons
|
|
||||||
UrdeBadging
|
|
||||||
RuntimeCommon
|
|
||||||
${URDE_PLAT_LIBS})
|
|
||||||
if(COMMAND add_sanitizers)
|
if(COMMAND add_sanitizers)
|
||||||
add_sanitizers(urde)
|
add_sanitizers(urde)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ static hecl::SystemString CPUFeatureString(const zeus::CPUInfo& cpuInf) {
|
|||||||
features += _SYS_STR(", ");
|
features += _SYS_STR(", ");
|
||||||
features += str;
|
features += str;
|
||||||
};
|
};
|
||||||
|
#if __x86_64__
|
||||||
if (cpuInf.AESNI)
|
if (cpuInf.AESNI)
|
||||||
AddFeature(_SYS_STR("AES-NI"));
|
AddFeature(_SYS_STR("AES-NI"));
|
||||||
if (cpuInf.SSE1)
|
if (cpuInf.SSE1)
|
||||||
@@ -45,6 +46,7 @@ static hecl::SystemString CPUFeatureString(const zeus::CPUInfo& cpuInf) {
|
|||||||
AddFeature(_SYS_STR("AVX"));
|
AddFeature(_SYS_STR("AVX"));
|
||||||
if (cpuInf.AVX2)
|
if (cpuInf.AVX2)
|
||||||
AddFeature(_SYS_STR("AVX2"));
|
AddFeature(_SYS_STR("AVX2"));
|
||||||
|
#endif
|
||||||
return features;
|
return features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
amuse
2
amuse
Submodule amuse updated: 1275293327...d3c4f568bb
2
hecl
2
hecl
Submodule hecl updated: 2b75ffed47...8d5c99e10a
2
nod
2
nod
Submodule nod updated: d53d677038...02c188497a
2
specter
2
specter
Submodule specter updated: 23f7015125...a323942118
Reference in New Issue
Block a user