Commit Graph

9052 Commits

Author SHA1 Message Date
Xavier Claessens 8603c3b445 dist: Add --no-tests option
It is not always needed to test generated tarballs, for example when
they are generated by CI that already does its own testing.
2020-03-29 21:12:34 +03:00
Ole André Vadla Ravnås 7195c0ee9c compilers: Fix accidental coredata mutations 2020-03-29 20:55:35 +03:00
Dylan Baker 8bdc5c2dd5 environment: "power machintosh" is ppc
I've combined the two ppc checks into one, since they're not very
complicated and added power machintosh, which is used by PPC macs
running older versions of osx.

Fixes: #6746
2020-03-29 20:54:12 +03:00
Jon Turney 7005e211a2 Report an errror if glib-compile-resources is missing
Produce a diagnostic if we try to use gnome.compile_resources() when
glib-compile-resources isn't present, rather than a python backtrace.
2020-03-29 20:53:50 +03:00
Jon Turney 74028414e4 Add a failing test for missing glib-compile-resources 2020-03-29 20:53:50 +03:00
Ole André Vadla Ravnås d8094d26f3 compilers: Fix C++ stdlib flags used for Apple's Clang
Should target libc++, not libstdc++.
2020-03-29 20:53:15 +03:00
Michael Kuhn 6952f9f6c9 Do not call restorecon if there are no files to install
Fixes #6452
2020-03-29 20:52:43 +03:00
Jussi Pakkanen 41485f3eca Bump version number for new development. [skip ci] 2020-03-29 20:46:20 +03:00
Jussi Pakkanen 15b0bd6e93 Update everything for new release. 2020-03-29 20:37:15 +03:00
Daniel Mensinger 95e7477d12 cmake: Only expand executable targets in COMMAND (fixes #6857) 2020-03-29 19:35:37 +03:00
Jussi Pakkanen 4bfc143c5e Only split linker args with D compilers. Closes: #6845 2020-03-28 18:37:42 +02:00
Marc Herbert b2dc277c1e docs: why 'ninja test' depends on build_by_default targets [skip ci]
Fixes #1949
2020-03-28 01:01:01 +02:00
Dylan Baker 7fd42a5be4 docs: Add a new page with common cross/native file options [skip ci]
Rather than having two separate sections with duplicated information
lets just have one for the common settings, and only document sections
specific to each file in separately
2020-03-28 00:59:46 +02:00
Daniel Mensinger 4e52a0f7fd boost: Better python module detection 2020-03-28 00:56:58 +02:00
Daniel Mensinger 1bfd5e9dd2 boost: Better log found and missing modules 2020-03-28 00:56:58 +02:00
Xavier Claessens 4d7ccd1399 Make werror per subproject option 2020-03-24 22:48:55 +02:00
Martin Storsjö b3fe9fa5d8
Clarify a workaround for older versions of LLD for MinGW (#6836) [skip ci]
The previous diagnosis (that the wrapper that injects the -target
option to clang caused the issues) doesn't seem right; the issue
was that LLD's MinGW frontend (which is invoked when ld.lld is given
a COFF argument to the -m option) didn't handle the --version argument
before LLD 9.0.0.
2020-03-24 08:36:52 -07:00
Jussi Pakkanen 253fbc4470 Bump version number for rc1. 2020-03-24 10:53:02 +02:00
Dylan Baker 61f5618828 compilers: Clang can take linkers that are paths
This will be a regression in 0.54.0 because we now enforce that gnu
compilers only get gold, bfd, or lld.
2020-03-24 10:05:01 +02:00
Xavier Claessens 326e9dcc51 gtkdoc: Add missing permitted kwarg
The 'check' kwarg was added in Meson 0.52.0.
2020-03-23 23:57:49 +02:00
Jussi Pakkanen 7924e5f9c2 Revert "Naturally use env vars a bit more to match Autoconf"
This reverts commit 097dfc085e.
2020-03-23 18:07:24 +02:00
John Ericson 097dfc085e Naturally use env vars a bit more to match Autoconf
PR #6363 made it so our interpretation of env vars no longer clashed
with Autoconf's: if both Meson and Autoconf would read and env var, both
would do the same things with the value they read.

However, there were still cases that autoconf would read an env var when
meson wouldn't:

 - Autoconf would use `CC` in cross builds too

 - Autoconf would use `CC_FOR_BUILD` in native builds too.

There's no reason Meson can't also do this--if native cross files
overwrite rather than replace env vars, cross files can also overwrite
rather than replace env vars.

Because variables like `CC` are so ubiquitous, and because ignoring them
in cross builds just makes those builds liable to break (and things more
complicated in general), we bring Meson's behavior in line with
Autoconf's.
2020-03-23 17:51:36 +02:00
John Ericson 3a4388e51d Fix legacy env var support with cross
Fix #3969
2020-03-23 17:51:36 +02:00
John Ericson f6b0425576 Fix linker evn var tests
Just because we are on windows doesn't mean we can use `link`.

This ought to be done better, but this will do for now.
2020-03-23 17:14:00 +02:00
Szabi Tolnai e2b4e99d71 Fix ARMCC dependency generation.
Change-Id: I661684ee8adf5a998641369cf5f13641699742d5
2020-03-23 17:13:10 +02:00
Jussi Pakkanen 9e5c881b06 Add property to disable compiler sanity checks during cross compilation. 2020-03-22 23:07:53 +02:00
Jussi Pakkanen 1cf7799df2 Do not try to mix gcc with link.exe. 2020-03-22 22:48:47 +02:00
Michael Brockus 0b42e817dd adding Meson-UI to IDE-integration.md [skip ci] 2020-03-21 20:09:08 +02:00
alanNz 7460292810 -Add xc16 and c2000 C,Cpp toolchain support 2020-03-21 00:47:24 +02:00
Jussi Pakkanen 24227a9553
Merge pull request #6544 from dcbaker/mpi-dependency-factory
Use DependencyFactory and ConfigToolDependency for MPI
2020-03-20 20:37:25 +02:00
Jussi Pakkanen 84e216fd64
Merge pull request #6636 from jon-turney/machine-detection-problems
Redetect machines when languages change
2020-03-20 20:35:59 +02:00
Dylan Baker 4120cdd01a docs: update MPI documentation with methods 2020-03-19 14:46:07 -07:00
Dylan Baker baca2cd07d mpi: Use a factory function
This makes use of proper ConfigTool and PkgConfig dependencies rather
than one big ExternalDependency that internally creates other
dependencies and then copies their attributes.
2020-03-19 14:46:07 -07:00
Dylan Baker f6e50da49a dependencies/base: Make the ConfigTool Dependency more flexible 2020-03-19 14:45:08 -07:00
Dylan Baker 9f358ab54a tests/mpi: Add a method option
So we can force the use of pkg-config or config-tool
2020-03-19 14:45:08 -07:00
Dylan Baker e781dfcb2b dependencies: Convert ScaLAPACK to a dependency factory
Basically this breaks down into three cases. An open source version with
compliant PkgConfig, valid CMake, and a Intel implementation that has
completely broken PkgConfig. For the first two cases we can use standard
classes, for the last we can make a subclass of PkgConfigDependency that
handles the special logic.

This doesn't change any of the logic, but it does re-organize it to be
clearer, and make use of the dependency factory API, which makes other
things (like Dependency.get_variable) work.

This is untested with Intel MKL.
2020-03-19 23:43:08 +02:00
Phillip Johnston 82fd645da2 Update cross compilation documentation to reference new ld variables 2020-03-19 14:23:09 -07:00
Phillip Johnston f6fad7ae9b Update native description to use the new LD variables
With Meson 0.53.1, this is now out of date. Updating to use the proper ld variables.
2020-03-19 14:22:12 -07:00
Camilo Celis Guzman 18373cba74 mtest: terminate a test via SIGTERM first then (if needed) via SIGKILL 2020-03-19 23:04:36 +02:00
Xavier Claessens 4d6faf6a13 interpreterbase: Add warning when built-in object method has no kwargs 2020-03-19 23:01:58 +02:00
Daniel Mensinger 673ca982f1 cmake: Add find_package COMPONETS support 2020-03-19 22:52:03 +02:00
Michael 02e7316d31 sample factory implementation 2020-03-19 22:44:59 +02:00
Jussi Pakkanen aff7fc89c3 Generators can depend on custom targets as well as build targets. 2020-03-19 22:03:14 +02:00
Jussi Pakkanen 321774d715
Merge pull request #6789 from dcbaker/deprecated-c-ld
Make linker selection environment variables match docs
2020-03-19 19:19:29 +02:00
ClausKlein 00104b1081 Remove my notes from sources
changes acording review comments
2020-03-19 19:11:10 +02:00
ClausKlein f72c990bfd Use os.path.normpath() for include paths
This make relative pathes shorter an too give a chance to
de-duplicate -isystem flags just like -I flags.

Fix common test case 203 for OSX build host too
2020-03-19 19:11:10 +02:00
Richard Weinberger 12fa8d06e2 Fix exe_wrapper usage in EmptyExternalProgram case
If no exe_wrapper is set in the meson cross file the exe_wrapper
object will be an instance of EmptyExternalProgram.
So, found is True and prorgram is an empty list.

This will cause meson to tun the compiler sanity check because
it checks only for self.is_cross and self.exe_wrapper being
not None.

I ran into that situation while cross compiling for ia32 on a
x64_64 host. The host had no ia32 userspace installed, so the
self test failed.

As workaround I currently set exe_wrapper to 'true'.

Signed-off-by: Richard Weinberger <richard@nod.at>
2020-03-19 19:09:18 +02:00
Dylan Baker e1060f5772 compilers: Link D runtime/libphobs dynamically on !Windows
Fixes: #6786
2020-03-19 19:04:43 +02:00
Xavier Claessens 32b4bfaa74 Fix failing rust CI
rustc 1.42 now dynamically link to libstd so its path is needed in
LD_LIBRARY_PATH.
2020-03-19 19:03:44 +02:00
Andrei Alexeyev b521c65de6 Fix bogus parameter passed to LLVMDynamicLinker (llvm-mingw regression) 2020-03-19 09:38:26 -07:00