summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump minimum supported Python version to 3.6. Closes #6297.pythonbumpJussi Pakkanen2020-09-075-37/+11
|
* backends: check external rpaths for all languages using ldflagsJames Hilliard2020-09-062-2/+3
| | | | Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
* Merge pull request #7689 from scivision/fortran_incJussi Pakkanen2020-09-069-65/+64
|\ | | | | correct Fortran include algorithm
| * tests: add fortran cmake subproject include testMichael Hirsch2020-09-038-45/+42
| | | | | | | | ci:unused_arg: update ninja version to work with fortran+cmake
| * fortran: make include scanning also work for CMake subprojectsMichael Hirsch2020-09-021-20/+22
| | | | | | | | | | | | | | also fixed PEP8 I originally implemented the "include" scanning, but hadn't made a test for this case
* | ci: update to use latest recommendationsMichael Hirsch2020-09-063-14/+13
| |
* | doc: Add missing method arguments [skip ci]Michal Sojka2020-09-061-21/+21
| | | | | | | | | | Documentation of most methods mentions method arguments enclosed in parentheses. Two methods are an exception and we fix them here to make the manual more consistent.
* | docs: Fix typo in Reference-manual.md [skip ci]Krzysztof Małysa2020-09-051-1/+1
| |
* | environment: use ExternalProgram to find ninjaPaolo Bonzini2020-09-047-18/+22
| | | | | | | | | | | | | | | | | | | | | | This allows the NINJA environment variable to support all the Windows special cases, especially allowing an absolute path without extension. Based on a patch by Yonggang Luo. Fixes: #7659 Suggested-by: Nirbheek Chauhan <nirbheek@centricular.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* | introspect: add test dependencies info to test/benchmark JSONPaolo Bonzini2020-09-047-4/+50
|/ | | | | | | | | | | | Add the ids of any target that needs to be rebuilt before running the tests as computed by the backend, to the introspection data for tests and benchmarks. This also includes anything that appears on the test's command line. Without this information, IDEs must update the entire build before running any test. They can now instead selectively build the test executable itself and anything that is needed to run it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* cuda: bump CUDA version since 3.0 is no longer supportedDaniel Mensinger2020-09-021-2/+2
|
* symbolextractor: Handle PermissionError when running toolNirbheek Chauhan2020-09-021-0/+5
| | | | | | | I can't reproduce this, but it is definitely possible. In this case what we should do is the same as when the tool is not found. Fixes https://github.com/mesonbuild/meson/issues/7605
* cmake: Don't link DEBUG to CRT when not building with MSVCNirbheek Chauhan2020-09-021-1/+3
| | | | | | | is_debug doesn't just control the CRT, it also controls the 'debug configuration' which is unrelated to the CRT setting on non-MSVC. Fixes https://github.com/mesonbuild/meson/issues/7631
* interpreterbase: Fix typing annotationXavier Claessens2020-09-021-1/+1
| | | Co-authored-by: Daniel Mensinger <daniel@mensinger-ka.de>
* Special case meson.version().version_compare() statementXavier Claessens2020-09-024-3/+44
| | | | | | | | | when that statement gets evaluated, the interpreter remembers the version target and if it was part of the evaluation of a `if` condition then the target meson version is temporally overriden within that if-block. Fixes: #7590
* docs: Add a snippet for python 3.5 deprecation [skip ci]Nirbheek Chauhan2020-09-021-0/+15
|
* Add test case for cuda compiler setting fixMatt Madison2020-09-023-0/+40
| | | | Signed-off-by: Matt Madison <matt@madison.systems>
* environment: do not raise exception in detect_cuda_compilerMatt Madison2020-09-021-2/+0
| | | | | | | | | when the compiler is not a string. When the compiler is set in the build configuration (required, for example, in a cross-build setup), the compiler setting is already a list, which is the desired type. Signed-off-by: Matt Madison <matt@madison.systems>
* Add a notice about Python 3.5 supportNirbheek Chauhan2020-09-022-4/+21
| | | | | | | | This will be printed in bold at the end of interactive meson sub-commands that won't be parsed by a program. Specifically: setup, compile, test, and install. NOTICE: You are using [...]
* Add Entangle application to list of apps using MesonDaniel Berrangé2020-09-021-0/+1
| | | Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* dependencies/mpi: add missing annotationDylan Baker2020-09-021-3/+3
|
* dependencies: Fix type of dependency_factory decoratorDylan Baker2020-09-021-13/+11
| | | | | | | | | There was both a straight up bug in the type signature (the return type is List[Callable[[], Dependency]] not List[Type[Dependency]]), and in the way the arguments are assembled. Typing is pretty limited in it's ability to express decorators, so the best mypy can do is check the return types (I think). I've done what the docs suggest and it's stopped complaining.
* Add some forgotten values for "cpp_std" [skip ci]Michael Brockus2020-09-021-1/+1
|
* backends: do not look for extra paths unnecessarilyPaolo Bonzini2020-08-312-8/+6
| | | | | | | | | | | | | extra_paths only matter for the host machine if using an exe_wrapper. However, because CustomTarget.for_machine is always MachineChoice.HOST, they were computed unnecessarily in as_meson_exe_cmdline. Defer computation of extra_paths until after we have found out if the custom target executable is really for the host or the build machine, so that we can use exe_for_machine; for_machine then becomes unused and can be removed. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* mcompile: Also support -v for verboseNirbheek Chauhan2020-08-311-1/+1
| | | | | | This matches `meson test`, and there's really no other meaning that could be attributed to this, since you would call `meson` to get the version, not the `compile` sub-command.
* CMake module: fix cmake 3.10 compatibility in path generationSebastian Würl2020-08-301-4/+4
|
* CMake module: fix python 3.6 compatibility in path generationSebastian Würl2020-08-301-2/+2
|
* CMake module: Allow paths of generated CMake sources for include directoriesSebastian Würl2020-08-304-5/+24
|
* Clarify the use of -Doption and alternatives [skip ci]Sebastian Engel2020-08-301-4/+8
| | | | | | | | | | | | | The -Doption=value style argument works for all builtin options, and compiler options passed to meson. And some universal options, have additional ways to be passed. However, base options (and compiler options) do not have exactly the same ways of passing as universal options. This change adds a few pieces of information, which might get lost, if the manual is not read serially. [skip ci]
* Be stricter when detecting Windows/CygwinChristoph Reiter2020-08-305-11/+9
| | | | | | | | | | | | | | | | This removes the check for "mingw" for platform.system(). The only case I know where "mingw" is return is if using a msys Python under a msys2 mingw environment. This combination is not really supported by meson and will result in weird errors, so remove the check. The second change is checking sys.platform for cygwin instead of platform.system(). The former is document to return "cygwin", while the latter is not and just returns uname(). While under Cygwin it uname() always starts with "cygwin" it's not hardcoded in MSYS2 and starts with the environment name. Using sys.platform is safer here. Fixes #7552
* meson_exe: Remove two unused functionsChristoph Reiter2020-08-301-9/+0
|
* mcompile: use -v instead of --verbose for ninjaIgor Raits2020-08-301-1/+1
| | | | | The `--verbose` has been added to ninja in 1.9.0 and we pretend that we have compatibility with Ninja 1.7+. References: https://github.com/ninja-build/ninja/commit/bf7517505ad1def03e13bec2b4131399331bc5c4
* unittests: continue on exception instead of breakJames Hilliard2020-08-301-1/+1
| | | | Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
* Dedup final install rpath.Jussi Pakkanen2020-08-301-6/+9
|
* D: fix include orderPierrick Bouvier2020-08-302-0/+13
| | | | | Commit 93c3ec7e introduced a new way to handle deduplication with compiler args. This resulted in D includes to be reversed.
* tests: make chdir more robust in run_unittests.pyDaniel Mensinger2020-08-271-2/+4
|
* Fix typo when fetching buildtype option for compiler checksNirbheek Chauhan2020-08-272-1/+54
| | | | | | | | | | | This type happened in https://github.com/mesonbuild/meson/pull/7432 and wasn't noticed because I didn't add a test for it. Rectified now. If we don't specify the CRT, MSVC will pick /MT by default (!?) and link to `libcmt.lib`. This actually *breaks* UWP because `libcmt.lib` is not available by default when building for UWP. Was noticed here: https://github.com/cisco/libsrtp/pull/505
* test: Add 'dir' support for installed files in test.jsonDaniel Mensinger2020-08-275-401/+27
| | | | | | This is useful for automatically generated docs (doxygen, hotdoc) with a lot of generated files that may differ with different versions of the generator.
* tests: update .gitignoreDaniel Mensinger2020-08-272-0/+2
|
* tests: fix lchmod check for glibc >= 2.32 (fixes #6784)Daniel Mensinger2020-08-271-6/+14
|
* Merge pull request #7581 from peterh/aixJussi Pakkanen2020-08-255-5/+73
|\ | | | | Add AIX support
| * docs: add AIX preliminary support snippetPeter Harris2020-08-171-0/+8
| |
| * find_library: include get_linker_always_args in link argsPeter Harris2020-08-171-1/+1
| | | | | | | | | | | | The linker always args, as the name implies, should always be included. For example, the AIX get_allow_undefined_link_args are a syntax error unless the AIX get_linker_always_args are also used.
| * aix: allow both 32-bit and 64-bit objects in a static libraryPeter Harris2020-08-122-2/+14
| | | | | | | | | | | | Without the -Xany flag, the ar command will complain when an .o file is compiled for the non-default bit width. This change is necessary to allow 64-bit builds via a native (or cross) file.
| * aix: detect and support the AIX dynamic linkerPeter Harris2020-08-122-0/+41
| |
| * aix: fix cpu family detectionPeter Harris2020-08-122-2/+9
| | | | | | | | Like the BSDs, AIX does not return anything useful in platform.machine().
* | qt module: add qresource support to compile_translationsEli Schwartz2020-08-253-11/+85
| | | | | | | | | | | | | | | | | | | | | | | | A common pattern in Qt5 applications is to embed translations in the executable using the qresource system. In this case, the list of translation files is already available in the .qrc file and there's no good reason to duplicate this info in meson.build. Let compile_translations optionally take a qrc input, in which case it will go straight to generating the relevant translations and rcc-generated .cpp, and directly return the thing users actually care about -- the .cpp for linking.
* | Merge pull request #7600 from alexrp/masterJussi Pakkanen2020-08-234-5/+17
|\ \ | | | | | | Add C2x option support.
| * | Update LLVM tool versions for LLVM/Clang 10.Alex Rønne Petersen2020-08-221-1/+2
| | |
| * | Add C2x option support.Alex Rønne Petersen2020-08-223-4/+15
| | |