This is an archive of the discontinued LLVM Phabricator instance.

gn build: Move target flags from toolchain to a .gni file.
ClosedPublic

Authored by pcc on Jan 15 2019, 2:02 AM.

Details

Summary

While here, add a use_lld flag and default it to true when using
clang on non-mac.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Jan 15 2019, 2:02 AM
thakis accepted this revision.Jan 15 2019, 6:09 AM

I think it might make sense to pretty soon add build/{android,...}/BUILD.gn that defines a build/{android,...}_compiler config that's added to the config list soon, instead of expanding this duplicate way to define compiler flags.

This revision is now accepted and ready to land.Jan 15 2019, 6:09 AM
pcc added a comment.Jan 15 2019, 1:26 PM

I think it might make sense to pretty soon add build/{android,...}/BUILD.gn that defines a build/{android,...}_compiler config that's added to the config list soon, instead of expanding this duplicate way to define compiler flags.

Unfortunately it does seem like necessary duplication (per D56713).

This revision was automatically updated to reflect the committed changes.