Skip to content

Commit

Permalink
Restore removed emscripten includes in abseil-cpp
Browse files Browse the repository at this point in the history
commit_hash:8dc6a399ad7e3cf95e20e1efdf0313c9173361ea
  • Loading branch information
vchigrin committed Feb 4, 2025
1 parent a806e7a commit 69e6a85
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 10 deletions.
3 changes: 3 additions & 0 deletions build/conf/sysincl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ when ($USE_ARCADIA_COMPILER_RUNTIME == "no") {
when ($OS_EMSCRIPTEN) {
SYSINCL+=build/sysincl/emscripten.yml
}
otherwise {
SYSINCL+=build/sysincl/emscripten-to-nothing.yml
}

when ($CUDA_VERSION == "10.2") {
SYSINCL+=build/sysincl/nvidia-cub-1.8.0.yml
Expand Down
4 changes: 4 additions & 0 deletions build/sysincl/emscripten-to-nothing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- includes:
- emscripten.h
- emscripten/console.h
- emscripten/version.h
2 changes: 1 addition & 1 deletion contrib/restricted/abseil-cpp-tstring/y_absl/base/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ static_assert(Y_ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
#error Y_ABSL_INTERNAL_EMSCRIPTEN_VERSION cannot be directly set
#endif
#ifdef __EMSCRIPTEN__
#error #include <emscripten/version.h>
#include <emscripten/version.h>
#ifdef __EMSCRIPTEN_major__
#if __EMSCRIPTEN_minor__ >= 1000
#error __EMSCRIPTEN_minor__ is too big to fit in Y_ABSL_INTERNAL_EMSCRIPTEN_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <util/generic/string.h>

#ifdef __EMSCRIPTEN__
#error #include <emscripten/console.h>
#include <emscripten/console.h>
#endif

#include "y_absl/base/attributes.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef Y_ABSL_DEBUGGING_INTERNAL_STACKTRACE_EMSCRIPTEN_INL_H_
#define Y_ABSL_DEBUGGING_INTERNAL_STACKTRACE_EMSCRIPTEN_INL_H_

#error #include <emscripten.h>
#include <emscripten.h>

#include <atomic>
#include <cstring>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include <cxxabi.h>
#error #include <emscripten.h>
#include <emscripten.h>

#include <algorithm>
#include <cstring>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <cstdio>

#if defined(__EMSCRIPTEN__)
#error #include <emscripten/console.h>
#include <emscripten/console.h>
#endif

#include "y_absl/base/attributes.h"
Expand Down
2 changes: 1 addition & 1 deletion contrib/restricted/abseil-cpp/absl/base/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
#error ABSL_INTERNAL_EMSCRIPTEN_VERSION cannot be directly set
#endif
#ifdef __EMSCRIPTEN__
#error #include <emscripten/version.h>
#include <emscripten/version.h>
#ifdef __EMSCRIPTEN_major__
#if __EMSCRIPTEN_minor__ >= 1000
#error __EMSCRIPTEN_minor__ is too big to fit in ABSL_INTERNAL_EMSCRIPTEN_VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <string>

#ifdef __EMSCRIPTEN__
#error #include <emscripten/console.h>
#include <emscripten/console.h>
#endif

#include "absl/base/attributes.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#ifndef ABSL_DEBUGGING_INTERNAL_STACKTRACE_EMSCRIPTEN_INL_H_
#define ABSL_DEBUGGING_INTERNAL_STACKTRACE_EMSCRIPTEN_INL_H_

#error #include <emscripten.h>
#include <emscripten.h>

#include <atomic>
#include <cstring>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#include <cxxabi.h>
#error #include <emscripten.h>
#include <emscripten.h>

#include <algorithm>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion contrib/restricted/abseil-cpp/absl/log/internal/globals.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <cstdio>

#if defined(__EMSCRIPTEN__)
#error #include <emscripten/console.h>
#include <emscripten/console.h>
#endif

#include "absl/base/attributes.h"
Expand Down

0 comments on commit 69e6a85

Please sign in to comment.