aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-09-10Bump versions to 0.55.2 for release0.55.2Nirbheek Chauhan2-2/+2
2020-09-10cmake: fix shared_module dependency (fixes #7715)Daniel Mensinger7-0/+250
2020-09-09Fix run_project_test.py when not under CIJon Turney1-2/+2
Since 492afe50, detect_ninja() returns a List[str], not a str. run_project_test.py still happens to work under CI, as we bypass detect_ninja(), but fails when run locally, as we try to exec() that list. > Checking that building works... > Traceback (most recent call last): > File "./run_project_tests.py", line 1301, in <module> > check_meson_commands_work(options) > File "./run_project_tests.py", line 1190, in check_meson_commands_work > pc, o, e = Popen_safe(compile_commands + dir_args, cwd=build_dir) > File "/wip/meson/mesonbuild/mesonlib.py", line 1220, in Popen_safe > stdout=stdout, stderr=stderr, **kwargs) > File "/usr/lib/python3.6/subprocess.py", line 729, in __init__ > restore_signals, start_new_session) > File "/usr/lib/python3.6/subprocess.py", line 1278, in _execute_child > executable = os.fsencode(executable) > File "/usr/lib/python3.6/os.py", line 800, in fsencode > filename = fspath(filename) # Does type-checking of `filename`. > TypeError: expected str, bytes or os.PathLike object, not list
2020-09-09IntrospectInterpreter: allow dictionaries with nonconstant keysPaolo Bonzini2-0/+11
Something like {a: foo} currently stymies the IntrospectionInterpreter and breaks introspection of the source directory. The fix is just to walk the keys and return a dummy dictionary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-09-09minstall: Print a big FAILED when a script failsNirbheek Chauhan1-4/+6
We don't run any further scripts when this happens, so we need to print a big error. The exit code was already correct. Fixes https://github.com/mesonbuild/meson/issues/7627
2020-09-09Add some type hints to the ExternalProgram classNirbheek Chauhan1-7/+7
2020-09-09Fix picking up tools with args from the env on WindowsNirbheek Chauhan2-3/+26
This was a regression in https://github.com/mesonbuild/meson/pull/7059. We do not need to do a full search for all windows special cases. We only want to check whether the command provided is actually a full path to a script so we can add the interpreter. Fixes https://github.com/mesonbuild/meson/issues/7645
2020-09-09environment: use ExternalProgram to find ninjaPaolo Bonzini7-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>
2020-09-09symbolextractor: Handle PermissionError when running toolNirbheek Chauhan1-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
2020-09-09cmake: Don't link DEBUG to CRT when not building with MSVCNirbheek Chauhan1-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
2020-09-09Add test case for cuda compiler setting fixMatt Madison3-0/+40
Signed-off-by: Matt Madison <matt@madison.systems>
2020-09-09environment: do not raise exception in detect_cuda_compilerMatt Madison1-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>
2020-09-09Add a notice about Python 3.5 supportNirbheek Chauhan2-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 [...]
2020-09-09mcompile: Also support -v for verboseNirbheek Chauhan1-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.
2020-09-09CMake module: fix cmake 3.10 compatibility in path generationSebastian Würl1-4/+4
2020-09-09CMake module: fix python 3.6 compatibility in path generationSebastian Würl1-2/+2
2020-09-09CMake module: Allow paths of generated CMake sources for include directoriesSebastian Würl4-5/+24
2020-09-09mcompile: use -v instead of --verbose for ninjaIgor Raits1-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
2020-09-09Dedup final install rpath.Jussi Pakkanen1-6/+9
2020-09-09D: fix include orderPierrick Bouvier2-0/+13
Commit 93c3ec7e introduced a new way to handle deduplication with compiler args. This resulted in D includes to be reversed.
2020-09-09Fix typo when fetching buildtype option for compiler checksNirbheek Chauhan2-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
2020-09-09test: Add 'dir' support for installed files in test.jsonDaniel Mensinger5-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.
2020-09-09tests: update .gitignoreDaniel Mensinger2-0/+2
2020-09-09tests: fix lchmod check for glibc >= 2.32 (fixes #6784)Daniel Mensinger1-6/+14
2020-09-09cmake: Fix detection of AppleClangDylan Baker1-6/+19
It's not enough to detect that the linker is ld64: gcc, icc, and vanilla clang all use ld64 on macoOS. Instead we have to detect the class of the compiler, and determine if it's an Apple Compiler or a vanilla one.
2020-09-09compilers: Add Apple subclasses for ObjC and ObjC++Dylan Baker4-2/+22
These are needed because in some cases we need to be able to know if we're using vanilla clang or Apple's clang.
2020-09-09interpreter: Do not get variable on failed subprojectXavier Claessens1-4/+9
Fixes: #7620
2020-09-09fix failing testElliot Haisley2-4/+4
forgot that func() != func(void) in c
2020-09-09prevent disabler object from overwriting arraysElliot Haisley3-4/+12
fixes #7107
2020-09-09msvc: enable /std:c11 flagMichael Hirsch1-0/+20
2020-09-09Add test-cases for partially skipped TAP testsSimon McVittie4-0/+57
issue7515.txt is the output of one of the real TAP tests in gjs, which failed as a result of #7515. The version inline in meson.build is a minimal reproducer. Signed-off-by: Simon McVittie <smcv@debian.org>
2020-09-09mtest: TestResult.SKIP is not a failureSimon McVittie1-1/+1
If some but not all tests in a run were skipped, then the overall result is given by whether there were any failures among the non-skipped tests. Resolves: https://github.com/mesonbuild/meson/issues/7515 Signed-off-by: Simon McVittie <smcv@debian.org>
2020-08-15Bump versions to 0.55.1 for release0.55.1Nirbheek Chauhan2-2/+2
2020-08-15tests: Disable Boost extralib test on macOSSimon McVittie1-1/+5
Since upgrading Boost to version 1.73, this test segfaults on macOS when dynamically linked. Disable it to keep the rest of the CI reliable. Mitigates: #7535 Signed-off-by: Simon McVittie <smcv@debian.org>
2020-08-15ci: Disable pytest-xdist on cygwinNirbheek Chauhan1-2/+2
Fixes breakage when installing psutil: Collecting psutil>=3.0.0 Downloading psutil-5.7.2.tar.gz (460 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-install-dajoe3xd/psutil/setup.py'"'"'; __file__='"'"'/cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-install-dajoe3xd/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base '/cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-pip-egg-info-1ei2_y44' cwd: /cygdrive/c/Users/VSSADM~1/AppData/Local/Temp/pip-install-dajoe3xd/psutil/ Complete output (1 lines): platform cygwin is not supported
2020-08-15find_library: Print type of library not foundNirbheek Chauhan1-2/+7
If we can't find a static library, we should say that. It's confusing otherwise.
2020-08-15ninjabackend: Fix coverage rule generationNirbheek Chauhan2-1/+18
Without the parenthesis, the command evaluates to `[]` if `use_llvm_cov` is `False`. Also fix tests to actually check whether or not coverage reports are generated. Fixes https://github.com/mesonbuild/meson/issues/7553
2020-08-15mtest: Actually call colorize_console()Nirbheek Chauhan1-1/+1
2020-08-15add testcase for issue #5182Paolo Bonzini1-0/+3
Issue #5182 (" extract_objects returns duplicate objects") has been fixed. Add a testcase to ensure it does not regress.
2020-08-15interpreter: Don't force fallback when subproject failed to configureXavier Claessens2-1/+20
Fixes: #7534
2020-08-15cmake: Use a mapping when writing compiler IDNirbheek Chauhan1-1/+26
Meson and CMake compiler ids are different. This commit adds a mapping from the meson list: https://mesonbuild.com/Reference-tables.html#compiler-ids to the CMake list: https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html The mapping is not 1-1, and not all entries are mapped, so this is a best-effort attempt. Fallback to GNU as before to try to limp along and hope that the build files don't rely on an accurate compiler ID.
2020-08-15cmake: Fix hard-coded values in fake CMakeLists for MSVCNirbheek Chauhan1-16/+28
Without this, MSVC and MSVC_VERSION won't be set by CMake during platform detection, and the compiler will be an undefined mixture of GNU and MSVC. In particular, find_package(opencv) will fail on Windows when building with MSVC.
2020-08-15Test for spurious warning from get_target_filenamePaolo Bonzini4-0/+18
Fixed by #7494 without a test, so here's a test. Extracted from https://github.com/mesonbuild/meson/pull/7539
2020-08-15cmake: Detect custom command targets in compiler argsDaniel Mensinger4-1/+27
This is required to make `-include /path/to/custom/target.hpp` work. This setup is used by wxWidgets and this PR is required to use wxWidgets as a CMake subproject.
2020-08-15cmake: Make the CMake targte not found error more useful (see #7567)Daniel Mensinger1-1/+3
2020-08-15Use uname -p to detect x86_64 on QNX.Elad Lahav2-1/+3
2020-08-15Better log message on rpath error.Jussi Pakkanen1-1/+2
2020-08-15completions/zsh: Add --native-fileDylan Baker1-0/+1
Which is missing
2020-08-15common/234: avoid intermittent failure by dynamic path length generationMichael Hirsch5-20/+39
2020-08-15cmake: make the traceparser permissive by default (fixes #7501)Daniel Mensinger2-1/+4