Skip to content

Commit

Permalink
Merge pull request #20 from AntelopeIO/ubsan_no_bitint
Browse files Browse the repository at this point in the history
don't use BitInt when UBSAN is enabled
  • Loading branch information
spoonincode authored Mar 11, 2024
2 parents eae77bf + b426fc5 commit b5adbb7
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 b5adbb7

Please sign in to comment.