-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2319 from AntelopeIO/merge-main-03-18-2024
IF: Merge main 03-18-2024
- Loading branch information
Showing
16 changed files
with
143 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM ubuntu:jammy | ||
ENV TZ="America/New_York" | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y build-essential \ | ||
cmake \ | ||
git \ | ||
jq \ | ||
libcurl4-openssl-dev \ | ||
libgmp-dev \ | ||
llvm-11-dev \ | ||
lsb-release \ | ||
ninja-build \ | ||
python3-numpy \ | ||
software-properties-common \ | ||
file \ | ||
wget \ | ||
zlib1g-dev \ | ||
zstd | ||
|
||
RUN yes | bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" llvm.sh 18 | ||
|
||
#make sure no confusion on what llvm library leap's cmake should pick up on | ||
RUN rm -rf /usr/lib/llvm-18/lib/cmake | ||
|
||
COPY <<-EOF /ubsan.supp | ||
vptr:wasm_eosio_validation.hpp | ||
vptr:wasm_eosio_injection.hpp | ||
EOF | ||
|
||
ENV LEAP_PLATFORM_HAS_EXTRAS_CMAKE=1 | ||
COPY <<-EOF /extras.cmake | ||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "" FORCE) | ||
|
||
set(CMAKE_C_COMPILER "clang-18" CACHE STRING "") | ||
set(CMAKE_CXX_COMPILER "clang++-18" CACHE STRING "") | ||
set(CMAKE_C_FLAGS "-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" CACHE STRING "") | ||
set(CMAKE_CXX_FLAGS "-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" CACHE STRING "") | ||
EOF | ||
|
||
ENV UBSAN_OPTIONS=print_stacktrace=1,suppressions=/ubsan.supp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule appbase
updated
2 files
+2 −2 | application_base.cpp | |
+11 −9 | include/appbase/application_base.hpp |
25 changes: 25 additions & 0 deletions
25
libraries/chain/include/eosio/chain/chainbase_environment.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include <chainbase/environment.hpp> | ||
|
||
// reflect chainbase::environment for --print-build-info option | ||
FC_REFLECT_ENUM(chainbase::environment::os_t, | ||
(OS_LINUX) (OS_MACOS) (OS_WINDOWS) (OS_OTHER)) | ||
FC_REFLECT_ENUM(chainbase::environment::arch_t, | ||
(ARCH_X86_64) (ARCH_ARM) (ARCH_RISCV) (ARCH_OTHER)) | ||
|
||
namespace fc { | ||
|
||
void to_variant(const chainbase::environment& bi, variant& v) { | ||
// the variant conversion ultimately binds a reference to each member, but chainbase::environment is packed making | ||
// a reference to an unaligned variable UB. The boost_version is the only offender | ||
unsigned aligned_boost_version = bi.boost_version; | ||
v = fc::mutable_variant_object()("debug", bi.debug) | ||
("os", bi.os) | ||
("arch", bi.arch) | ||
("boost_version", aligned_boost_version) | ||
("compiler", bi.compiler); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.