| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
want_output gives us the output file. We don't need the file. We just
need the compiler stderr, which is always stored.
|
|
|
|
|
|
|
|
|
|
| |
The warning is due to a change in behaviour in Clang 10 and newer:
https://releases.llvm.org/10.0.0/tools/clang/docs/ReleaseNotes.html#c-language-changes-in-clang
This was already fixed for clang++, but not for clang for some reason.
It was also fixed incorrectly; by adding `extern` instead of moving
from `-Werror` to `-Werror=attributes`.
|
|
|
|
|
| |
One method belongs in the base Compiler class, the other belongs in
the GnuLikeCompiler class.
|
|
|
|
| |
ASAN is not supported on the Hurd yet.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This uses the normal meson mechanisms, an LD environment variable or via
cross/native files.
Fixes: #6057
|
| |
|
|
|
|
|
|
|
| |
compiler.get_supported_arguments reports success for certain unsupported
flags when using the gnu C/ObjC, C++/ObjC++ compilers. This fix reads
the stderr on the has_arguments check to ensure the arguments really are
supported and not valid for the language selection
|
|
|
|
|
|
| |
Now that the linkers are split out of the compilers this enum is
only used to know what platform we're compiling for. Which is
what the MachineInfo class is for
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
class
Instead of the DynamicLinker returning a hardcoded value like
`-Wl,-foo`, it now is passed a value that could be '-Wl,', or could be
something '-Xlinker='
This makes a few things cleaner, and will make it possible to fix using
clang (not clang-cl) on windows, where it invokes either link.exe or
lld-link.exe instead of a gnu-ld compatible linker.
|
| |
|
|
|
|
|
| |
Most of the cuda code is from Olexa Bilaniuk.
Most of the PGI code is from Michael Hirsc
|
|
|
|
| |
This simplifies and cleans things up.
|
| |
|
|
|
|
|
|
|
|
|
| |
There are two problems, one is that it assumes -flto is the argument
to do LTO/WPO, which isn't true of ICC and MSVC (and presumably)
others. It's also incorrect because it assumes that the compiler and
linker will always be the same, which isn't necessarily true. You
could combine GCC with Apple's linker, or clang with link.exe, which
use different arguments.
|
|
|
|
|
|
|
|
|
| |
There is a pretty big error in here, trying to return a tuple
comperhension: (a for a in []) is not a tuple, it's a generator. This
has profound type annotations: generators don't support most tuple or
list methods, and they can only be iterated once. Beyond that tuples are
meant for heterogenous types, ie, position matters for types. I've
converted the output to a list in all cases.
|
| |
|
|
I debated a bit whether both classes really belong in the same module,
and decided that they do because the share a number of helpers.
|