aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Talavera <jesse@jesse.tg>2023-12-20 08:25:49 -0500
committerGitHub <noreply@github.com>2023-12-20 14:25:49 +0100
commit01f8ad009ef3610fa4b58f57bc0a544b7793c5bd (patch)
tree372e47c27f41f3fcb407cf81b74bd054bf1451ba /src
parent4b4239de62b4ca0ab3c52c36227380eacb657813 (diff)
Wrap the `EnableJIT` initialization in an `#ifdef` (#1922)
Diffstat (limited to 'src')
-rw-r--r--src/NDS.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp
index 3582a3b..7c176fa 100644
--- a/src/NDS.cpp
+++ b/src/NDS.cpp
@@ -105,7 +105,9 @@ NDS::NDS(NDSArgs&& args, int type) noexcept :
AREngine(*this),
ARM9(*this, args.GDB, args.JIT.has_value()),
ARM7(*this, args.GDB, args.JIT.has_value()),
+#ifdef JIT_ENABLED
EnableJIT(args.JIT.has_value()),
+#endif
DMAs {
DMA(0, 0, *this),
DMA(0, 1, *this),