Skip to content

Commit

Permalink
Default to separate sections, even without LTO
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Dec 13, 2023
1 parent 18e366a commit e0bb6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Driver/ToolChains/CommonArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ llvm::StringRef tools::getLTOParallelism(const ArgList &Args, const Driver &D) {

// PS4/PS5 uses -ffunction-sections and -fdata-sections by default.
bool tools::isUseSeparateSections(const llvm::Triple &Triple) {
return Triple.isPS();
return Triple.isPS() || Triple.isMOS();
}

void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
Expand Down

0 comments on commit e0bb6e6

Please sign in to comment.