Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Build clang/sanitizers with debug libc++ #918

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ jobs:
clang-latest-sanitizers:
executor: linux-clang-xlarge
environment:
TOOLCHAIN: clang-libcxx-debug
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-debug.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++ -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG")