From 6d50141e35262fa09869d863beaf452a4501dce3 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Fri, 14 Feb 2025 12:50:18 +0000 Subject: [PATCH] build: Fix nothrow include. (#749) --- .github/workflows/main.yml | 4 ++++ src/snmalloc/override/new.cc | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd503af..be7558b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,10 @@ jobs: extra-cmake-flags: [ "" ] # Modify the complete matrix include: + - os: "ubuntu-22.04" + variant: "C++17" + build-type: "Debug" + extra-cmake-flags: "-DSNMALLOC_USE_CXX17=ON" - os: "ubuntu-20.04" variant: "C++17" build-type: "Debug" diff --git a/src/snmalloc/override/new.cc b/src/snmalloc/override/new.cc index 5b383e5..3f0efc1 100644 --- a/src/snmalloc/override/new.cc +++ b/src/snmalloc/override/new.cc @@ -1,5 +1,7 @@ #include "snmalloc/snmalloc.h" +#include + #ifdef _WIN32 # ifdef __clang__ # define EXCEPTSPEC noexcept