Propagate the sized-deallocation to the compiler instance

explicitly if the compiler enables it.
This commit is contained in:
Danilo Piparo 2024-06-07 06:57:17 +02:00 committed by jenkins
parent a462500c3a
commit 2f17f4b4eb

View File

@ -1362,6 +1362,11 @@ namespace {
argvCompile.push_back("-fno-omit-frame-pointer");
#endif
#ifdef __cpp_sized_deallocation
// Propagate the setting of the compiler to the interpreter
argvCompile.push_back("-fsized-deallocation");
#endif
// Disable optimizations and keep frame pointer when debugging, overriding
// other optimization options that might be in argv
if (debuggingEnabled) {