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 602b8f9 commit 1112fcf
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 @@ -514,6 +514,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 1112fcf

Please sign in to comment.