systemc: default SC_CPLUSPLUS to C++17 in installed headers (#569106)

This commit is contained in:
whispers
2026-10-02 23:04:58 +00:00
committed by GitHub

View File

@@ -16,6 +16,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-v/PcQu0m/7zyx2TtpZrLFbHtknahgVCkzcRi3lgrRGw=";
};
# consumers must see the SC_CPLUSPLUS the library was built with, otherwise it follows their own -std and fails to link
postPatch = ''
substituteInPlace src/sysc/kernel/sc_cmnhdr.h \
--replace-fail '# define SC_CPLUSPLUS SC_CPLUSPLUS_AUTO_' '# define SC_CPLUSPLUS 201703L'
'';
nativeBuildInputs = [ cmake ];
cmakeFlags = [