[PATCH] D53854: [Driver] Use -push-/-pop-state and -as-needed for libc++ on Fuchsia
Roland McGrath via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 30 16:37:24 PDT 2018
mcgrathr accepted this revision.
mcgrathr added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Driver/ToolChains/Fuchsia.cpp:125
!Args.hasArg(options::OPT_static);
+ CmdArgs.push_back("-push-state");
+ CmdArgs.push_back("-as-needed");
----------------
I'd use the `--` version of all these GNU-compatible options since that's the GNU-compatible syntax.
(But `-static` is still single-dash.)
================
Comment at: clang/lib/Driver/ToolChains/Fuchsia.cpp:132
}
CmdArgs.push_back("-lm");
}
----------------
`-lm` belongs inside the `--as-needed` umbrella too.
Repository:
rC Clang
https://reviews.llvm.org/D53854
More information about the cfe-commits
mailing list