[PATCH] D54345: Add initial scaffolding for the GN build.
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 15 11:00:29 PST 2018
thakis added inline comments.
================
Comment at: llvm/utils/gn/build/toolchain/BUILD.gn:12
+
+toolchain("posix") {
+ cc = "cc"
----------------
thakis wrote:
> phosek wrote:
> > I'd prefer moving these into a template and then define the concrete instance using those templates like most GN builds do. I think it makes it easier to define different toolchains, e.g. for clang and gcc or clang-cl and cl.
> >
> > Also `"posix"` is kind of a strange name, Fuchsia also uses the GCC style frontend but we're not POSIX :P I'd slightly prefer using the name Chromium convention to name these after the flag style, i.e. `gcc_toolchain` or `cl_toolchain`.
> I expect that this will be necessary once we do cross builds, bootstrap builds, etc. Until then, I'd like to keep this as-is if that's alright – then blame history will show where the template came from and why it's there.
>
> Re "posix": We used to have LLVM_ON_WIN32 and LLVM_ON_POSIX (we still have the latter), so these names were consistent with that. I don't care much about the name, and it's easy to change (referenced in 2 places I think).
Turns out this is a lie, it's LLVM_ON_UNIX. I'll rename this to "unix".
https://reviews.llvm.org/D54345
More information about the llvm-commits
mailing list