Skip to content

Commit 4a8bc5b

Browse files
committed
Fix build issues
Fix build issue
1 parent cb234b0 commit 4a8bc5b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,15 @@ set(XEUS_CPP_SRC
203203
src/xoptions.cpp
204204
src/xparser.cpp
205205
src/xutils.cpp
206-
src/xmagics/xassist.hpp
207-
src/xmagics/xassist.cpp
208206
)
209207

208+
if(NOT EMSCRIPTEN)
209+
list(APPEND XEUS_CPP_SRC
210+
src/xmagics/xassist.hpp
211+
src/xmagics/xassist.cpp
212+
)
213+
endif()
214+
210215
if(EMSCRIPTEN)
211216
list(APPEND XEUS_CPP_SRC src/xinterpreter_wasm.cpp)
212217
endif()

src/xinterpreter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
#include "xinput.hpp"
2929
#include "xinspect.hpp"
3030
#include "xmagics/os.hpp"
31+
#ifndef EMSCRIPTEN
3132
#include "xmagics/xassist.hpp"
33+
#endif
3234
#include "xparser.hpp"
3335
#include "xsystem.hpp"
3436

0 commit comments

Comments
 (0)