Skip to content

Commit

Permalink
don't use BitInt when UBSAN is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Mar 8, 2024
1 parent eae77bf commit b426fc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
include(CheckCXXSourceCompiles)

check_cxx_source_compiles("
#if defined(__has_feature)
# if __has_feature(undefined_behavior_sanitizer)
# error UBSAN and bitint don't work together yet, see https://github.com/llvm/llvm-project/issues/64100
# endif
#endif
int main() {
using T=_ExtInt(512);
return 0;
Expand Down

0 comments on commit b426fc5

Please sign in to comment.