summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/ymake.core.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 5b69b2c1f8c..ebdbf4c01b4 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -729,6 +729,12 @@ module _BASE_UNIT: _BARE_UNIT {
PEERDIR+=contrib/libs/musl/include
}
+ when ($OS_EMSCRIPTEN == "yes") {
+ when ($NOLIBC != "yes") {
+ PEERDIR+=contrib/restricted/emscripten/include
+ }
+ }
+
# g++ has proxy C-headers which are incompatible with libc++ proxy C-headers.
# The same problem exists for clang toolchain. On the other hand, the problem
# doesn't affect cl since it has united C/C++ library and doesn't need
@@ -4100,6 +4106,7 @@ macro NO_RUNTIME() {
macro NO_LIBC() {
NO_RUNTIME()
DISABLE(MUSL)
+ ENABLE(NOLIBC)
}
### @usage: NO_PLATFORM()