mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
CMake: Add an option to disable LLVM support.
This makes the disassembler only work for x86.
This commit is contained in:
parent
6033250beb
commit
c57f7414a8
@ -19,6 +19,7 @@ option(ENABLE_ALSA "Enables ALSA sound backend" ON)
|
|||||||
option(ENABLE_AO "Enables libao sound backend" ON)
|
option(ENABLE_AO "Enables libao sound backend" ON)
|
||||||
option(ENABLE_PULSEAUDIO "Enables PulseAudio sound backend" ON)
|
option(ENABLE_PULSEAUDIO "Enables PulseAudio sound backend" ON)
|
||||||
option(ENABLE_OPENAL "Enables OpenAL sound backend" ON)
|
option(ENABLE_OPENAL "Enables OpenAL sound backend" ON)
|
||||||
|
option(ENABLE_LLVM "Enables LLVM support, for disassembly" ON)
|
||||||
|
|
||||||
# Maintainers: if you consider blanket disabling this for your users, please
|
# Maintainers: if you consider blanket disabling this for your users, please
|
||||||
# consider the following points:
|
# consider the following points:
|
||||||
@ -511,6 +512,7 @@ else()
|
|||||||
message("OpenAL explicitly disabled, disabling OpenAL sound backend")
|
message("OpenAL explicitly disabled, disabling OpenAL sound backend")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_LLVM)
|
||||||
include(FindLLVM OPTIONAL)
|
include(FindLLVM OPTIONAL)
|
||||||
if (LLVM_FOUND)
|
if (LLVM_FOUND)
|
||||||
add_definitions(-DHAS_LLVM=1)
|
add_definitions(-DHAS_LLVM=1)
|
||||||
@ -521,6 +523,7 @@ if (LLVM_FOUND)
|
|||||||
|
|
||||||
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
set(USE_X11 0)
|
set(USE_X11 0)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user