Skip to content

Commit

Permalink
apply patch to work around absl issue
Browse files Browse the repository at this point in the history
  • Loading branch information
edgchen1 committed Nov 28, 2023
1 parent dd355e3 commit 236c9cb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cmake/patches/abseil/absl_gh_issue_1435_workaround.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- absl/container/internal/layout.h 2023-11-28 09:35:48
+++ absl/container/internal/layout.updated.h 2023-11-28 10:13:14
@@ -181,9 +181,11 @@
#include <sanitizer/asan_interface.h>
#endif

-#if defined(__GXX_RTTI)
-#define ABSL_INTERNAL_HAS_CXA_DEMANGLE
-#endif
+// Comment out ABSL_INTERNAL_HAS_CXA_DEMANGLE definition to work around this issue:
+// https://github.com/abseil/abseil-cpp/issues/1435
+// #if defined(__GXX_RTTI)
+// #define ABSL_INTERNAL_HAS_CXA_DEMANGLE
+// #endif

#ifdef ABSL_INTERNAL_HAS_CXA_DEMANGLE
#include <cxxabi.h>
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
--build --parallel --target onnx_proto
displayName: Generate compile_commands.json and ONNX protobuf files
- script: |
patch < "$(Build.BinariesDirectory)/cmake/patches/abseil/absl_gh_issue_1435_workaround.patch"
workingDirectory: "$(Build.BinariesDirectory)/Debug/_deps/abseil_cpp-src"
displayName: Apply absl_gh_issue_1435_workaround.patch
- script: |
set -e
Expand Down

0 comments on commit 236c9cb

Please sign in to comment.