Skip to content

Commit

Permalink
Propagate the sized-deallocation to the compiler instance
Browse files Browse the repository at this point in the history
explicitly if the compiler enables it.
  • Loading branch information
dpiparo authored and jenkins committed Jun 7, 2024
1 parent a462500 commit 2f17f4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Interpreter/CIFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f17f4b

Please sign in to comment.