Skip to content

Commit bceb24d

Browse files
committed
Add Emscripten compat include paths to interpreter initialization
1 parent 5860e95 commit bceb24d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/xinterpreter.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
4545
ClangArgs.push_back("-isystem");
4646
ClangArgs.push_back(CxxInclude.c_str());
4747
}
48+
49+
#ifdef __EMSCRIPTEN__
50+
ClangArgs.push_back("-Xclang");
51+
ClangArgs.push_back("-iwithsysroot/include/compat");
52+
#endif
53+
4854
ClangArgs.insert(ClangArgs.end(), ExtraArgs.begin(), ExtraArgs.end());
4955
// FIXME: We should process the kernel input options and conditionally pass
5056
// the gpu args here.

0 commit comments

Comments
 (0)