From 459538c3d2374c5bb112246a345a161b75bd17f0 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 4 Dec 2025 20:08:24 +0300 Subject: [PATCH 1/2] Simplify has_addr2line check to not link with C++ Standard Library --- build/has_addr2line.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build/has_addr2line.cpp b/build/has_addr2line.cpp index 763515d5..1c53334f 100644 --- a/build/has_addr2line.cpp +++ b/build/has_addr2line.cpp @@ -1,11 +1,10 @@ -// Copyright Antony Polukhin, 2016-2020. +// Copyright Antony Polukhin, 2016-2025. // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include -#include #include #include @@ -15,11 +14,10 @@ int main() { #ifdef BOOST_STACKTRACE_ADDR2LINE_LOCATION - std::string s = BOOST_STRINGIZE( BOOST_STACKTRACE_ADDR2LINE_LOCATION ); - s += " -h"; + const char* s = BOOST_STRINGIZE( BOOST_STACKTRACE_ADDR2LINE_LOCATION ) " -h"; #else - std::string s = "/usr/bin/addr2line -h"; + const char* s = "/usr/bin/addr2line -h"; #endif - return std::system(s.c_str()); + return std::system(s); } From dc6dd51dfd0717f2b033abaf6739a6e626a52e8b Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 5 Dec 2025 15:08:15 +0300 Subject: [PATCH 2/2] attempt to fix CI --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ef069ce..85a61bcf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: - toolset: gcc-9 cxxstd: "03,11,14,17,2a" os: ubuntu-22.04 + install: g++-9 - toolset: clang-15 cxxstd: "03,11,14,17,2a" os: ubuntu-22.04