Skip to content

Commit

Permalink
ci: Build clang/sanitizers with libc++
Browse files Browse the repository at this point in the history
Closes #906.
  • Loading branch information
chfast committed Jun 4, 2024
1 parent f84f801 commit be2551c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ jobs:
clang-latest-sanitizers:
executor: linux-clang-xlarge
environment:
TOOLCHAIN: clang-libcxx
CMAKE_OPTIONS: -DBUILD_SHARED_LIBS=NO -DSANITIZE=address,undefined,shift-exponent,implicit-conversion,nullability
UBSAN_OPTIONS: halt_on_error=1
steps:
Expand Down
8 changes: 8 additions & 0 deletions cmake/toolchains/clang-libcxx.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# evmone: Ethereum Virtual Machine
# Copyright 2024 The evmone Authors.
# Licensed under the Apache License, Version 2.0. See the LICENSE file.

set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)

set(CMAKE_CXX_FLAGS_INIT -stdlib=libc++)

0 comments on commit be2551c

Please sign in to comment.