Browse Source

[cmake] dynarmic: use platform shorthands for openbsd

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/273/head
crueter 6 months ago
parent
commit
3794ca55fc
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 8
      src/dynarmic/CMakeLists.txt
  2. 7
      src/dynarmic/externals/CMakeLists.txt

8
src/dynarmic/CMakeLists.txt

@ -14,20 +14,24 @@ endif()
# Dynarmic project options
option(DYNARMIC_ENABLE_CPU_FEATURE_DETECTION "Turning this off causes dynarmic to assume the host CPU doesn't support anything later than SSE3" ON)
if (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
if (PLATFORM_OPENBSD)
option(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT "Enables support for systems that require W^X" ON)
else()
option(DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT "Enables support for systems that require W^X" OFF)
endif()
option(DYNARMIC_FATAL_ERRORS "Errors are fatal" OFF)
option(DYNARMIC_IGNORE_ASSERTS "Ignore asserts" OFF)
option(DYNARMIC_TESTS_USE_UNICORN "Enable fuzzing tests against unicorn" OFF)
option(DYNARMIC_USE_LLVM "Support disassembly of jitted x86_64 code using LLVM" OFF)
if (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
if (PLATFORM_OPENBSD)
option(DYNARMIC_USE_PRECOMPILED_HEADERS "Use precompiled headers" OFF)
else()
option(DYNARMIC_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON)
endif()
option(DYNARMIC_INSTALL "Install dynarmic headers and CMake files" OFF)
option(DYNARMIC_USE_BUNDLED_EXTERNALS "Use all bundled externals (useful when e.g. cross-compiling)" OFF)
option(DYNARMIC_WARNINGS_AS_ERRORS "Warnings as errors" ${MASTER_PROJECT})

7
src/dynarmic/externals/CMakeLists.txt

@ -60,13 +60,6 @@ AddJsonPackage(
# endif()
# endif()
# unordered_dense
AddJsonPackage(
NAME unordered-dense
BUNDLED_PACKAGE ${DYNARMIC_USE_BUNDLED_EXTERNALS}
)
# xbyak
# uncomment if in an independent repo

Loading…
Cancel
Save