diff --git a/circle.yml b/circle.yml index 5dcae3adc0..0580e4ca31 100644 --- a/circle.yml +++ b/circle.yml @@ -558,6 +558,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: diff --git a/cmake/toolchains/clang-libcxx.cmake b/cmake/toolchains/clang-libcxx.cmake new file mode 100644 index 0000000000..a89c073280 --- /dev/null +++ b/cmake/toolchains/clang-libcxx.cmake @@ -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++)