mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 05:20:00 +00:00
systemc: default SC_CPLUSPLUS to C++17 in installed headers (#569106)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user