aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-02-29Merge pull request #6666 from mensinda/testRefactorJussi Pakkanen155-1040/+1442
Refactor run_projectests.py
2020-02-29environment: Strip 'el' from the end of mips architecturesDylan Baker1-0/+6
Mips architectures may have `el` on the end, to differentiate the little endian from the big endian variants. We don't encode endianness in the cpu names, so ensure we've stripped that. Fixes #6655
2020-02-28environment: Fix construction of CudaLinkerJan Alexander Steffens (heftig)1-1/+1
The 0.53.2 test suite has a new failure: Traceback (most recent call last): File "run_project_tests.py", line 1024, in <module> detect_system_compiler() File "run_project_tests.py", line 964, in detect_system_compiler comp = env.compiler_from_language(lang, MachineChoice.HOST) File "/build/meson/src/meson-0.53.2/mesonbuild/environment.py", line 1565, in compiler_from_language comp = self.detect_cuda_compiler(for_machine) File "/build/meson/src/meson-0.53.2/mesonbuild/environment.py", line 1131, in detect_cuda_compiler linker = CudaLinker(compiler, for_machine, 'nvlink', CudaCompiler.LINKER_PREFIX, [], version=CudaLinker.parse_version()) File "/build/meson/src/meson-0.53.2/mesonbuild/linkers.py", line 963, in __init__ super().__init__('nvlink', *args, **kwargs) TypeError: __init__() takes 6 positional arguments but 7 positional arguments (and 1 keyword-only argument) were given Fixes: c708c52ca225 ("linkers: Update the linker names to be more consistent")
2020-02-28Add release note snippetJon Turney1-0/+9
2020-02-28Extend unit test to cover cwd-relative warning location formattingJon Turney1-0/+14
2020-02-28Rename 'subdir' -> 'filename' in location objectsJon Turney3-55/+54
2020-02-28Add unit test of cwd-relative error location formattingJon Turney1-3/+34
2020-02-28Add failing test of parser error in options fileJon Turney2-0/+2
2020-02-28Add failing test of parser error in subdirJon Turney2-0/+3
2020-02-28Update rewriter for filename in node locationJon Turney1-14/+15
2020-02-28Display filename cwd relative in warning locationJon Turney1-2/+2
Format the filename relative to cwd in a warning location.
2020-02-28Store filename in node locationJon Turney5-5/+5
Warnings have a location node object (with subdir and lineno attributes), which is passed as a location: kwarg to mlog.warning() and formatted in _log_error(). Re-purpose the subdir attribute (path relative to the source root dir, with an implied filename of 'meson.build'), which is stored into the node by parser(), to contain a pathname. (Properly I should rename 'subdir' -> 'file' everywhere, but that's a lot of churn just to see if this works) Notes: The warning location node may also have a colno attribute, which is currently ignored by _log_error(). We can't currently issue warnings with locations in meson_options.txt because the filename isn't part of the location (as it's assumed to be 'meson.build).
2020-02-28Adjust all the other places MesonException file attribute is setJon Turney4-5/+6
A MesonException has file, lineno and colno attributes, which get formatted as a location in mlog.exception(). The file attribute got changed from a path relative to the root source directory to a pathname (absolute or relative to cwd) in one place in commit b8fbbf59. Adjust all the other places the file attribute is set to match. Also: Setting MesonException.file seems to be missing in the case where Parser returned a non-CodeBlockNode object. Fortunately, that looks like it's unreachable, but add it just in case.
2020-02-28Fix typos in comments about type annotationsJon Turney1-2/+2
2020-02-28Remove unused MesonException.get_msg_with_context()Jon Turney2-18/+10
After that, the only remaining user of get_error_location_string() is mlog, so move that there.
2020-02-28Fix framework version failing testJon Turney1-1/+1
This test was never testing what it claimed to test, simply failing with "ERROR: No C-like compilers are available, cannot find the framework" because a C-like language is missing from project().
2020-02-28Remove exact version constraint from dub failing-meson testsJon Turney3-3/+3
These are always failing just because the exact version constraint isn't satisfied, e.g. "ERROR: Meson version is 0.53.999 but project requires 0.48.0"
2020-02-28Remove invalid escape char failing testJon Turney1-4/+0
This test was never testing what it claimed to test, simply failing with 'ERROR: First statement must be a call to project' because it's missing project(). Since #5279, all unrecognized escape sequences are literal, so I don't think there's anything to test here.
2020-02-28Fix invalid and non-existent manfile extension testsJon Turney2-0/+0
Currently they are just failing trying to install a non-existent file.
2020-02-28Update test case to use run_target(command:)Jon Turney1-1/+1
Currently this test is just failing due to an unexpected positional argument, as the (deprecated) keywordless run_target() was removed in 0.45.0
2020-02-27compilers/linkers: Add a representation for wasm-ldDylan Baker7-26/+51
Emscripten does have a stand alone linker, wasm-ld. This patch adds the linker, adds detection for the linker, and removes the IsLinkerMixin for emscripten. This is a little more correct, and makes the code a lot cleaner and more robust.
2020-02-27compilers/mixins/emscripten: Implement thread supportDylan Baker8-16/+98
Emscripten has pthread support (as well as C++ threads), but we don't currently implement them. This fixes that by adding the necessary code. The one thing I'm not sure about is setting the pool size. The docs suggest that you really want to do this to ensure that your code works correctly, but the number should really be configurable, not sure how to set that. Fixes #6684
2020-02-27compilers/mixins/islinker: Add stubs for thread_*_flagsDylan Baker1-0/+6
2020-02-27compilers/emcc: Fix inheritance orderDylan Baker3-2/+3
Sot hat the BasicLinkerIsCompilerMixin comes before ClangCCompiler, which hides its "call the linker" methods, as emcc doesn't have a separate linker.
2020-02-27compilers/mixins/islinker: Add missing methodDylan Baker1-0/+3
In particular emcc needs this
2020-02-27tests/wasm: Add C language as well as C++ language to testDylan Baker2-1/+9
2020-02-27Fix 'linuxlike/14 static dynamic linkage' test on CygwinJon Turney1-1/+1
Update the expected output from nm to match changes in binutils 2.34.
2020-02-27Clang-cl cross fix from Dale Curtis. Closes #5639.Jussi Pakkanen1-1/+3
2020-02-27doc: fix link warningsMathieu Duponchelle3-4/+4
2020-02-27Fix python2 rename (#6703)Dylan Baker1-11/+16
* unittests: fix finding python2 if the binary is named python2 Because of the way the python module works the simplicity of the test function is no longer valid, we need to have and additional name parameter to make the python module work, as it doesn't look for an entry called "python2" or "python3", only "python" * unittests: Don't make our python 2.x check debian specific * unittests: On macOS the python2 binary is still called python
2020-02-26test: Updated docsDaniel Mensinger1-12/+120
2020-02-26test: replace pass_* functions with a test.json entryDaniel Mensinger5-21/+20
2020-02-26summary: Add more info in Subprojects sectionXavier Claessens4-13/+36
This adds a warnings counter for subprojects that passed. This is to encourage developpers to check warnings in the logs and hopefully fix them. Otherwise they could be hidden in hundreds lines of logs. This also print the error message for subprojects that did not pass. The error message is often enough to fix the issue (e.g. missing dependency) and it's easier than searching in the logs why a subproject failed.
2020-02-26summary: Add list_sep keyword argumentXavier Claessens5-10/+23
This allows having lists on a single line instead of having each value aligned on a new line.
2020-02-26mesonbuild/modules/gnome.py: Fix giscanner and gicompiler logicAdam Duskett1-0/+4
Currently, giscanner and the gicompiler paths are only scanned via pkg-config if they are first found in the host path. Add a else statement to fix this oversite.
2020-02-25gobject-introspection: determine g-ir-scanner and g-ir-compiler paths from ↵Adam Duskett1-3/+18
pkgconfig Currently, meson hard codes the paths of these binaries which results in cross-compiled environments to run the host versions of these tools. However, GObject-introspection provides the appropriate paths to these utilities via pkg-config find_program is needed in the case g-i is built as a subproject. If g-ir-scanner or g-ir-compiler are in the build or source directory use those. If they aren't found in the source directory, use the results from pkg-config.
2020-02-25azure ci: Test x86 Visual Studio builds again, closes #6604Nirbheek Chauhan1-2/+2
This was dropped when the VS2015 images were removed from Azure.
2020-02-25test: merge installed_files.txt into test.jsonDaniel Mensinger142-913/+1194
2020-02-25test: realise test_args.txt with a test matrixDaniel Mensinger5-25/+19
2020-02-25test: merge test_matrix.json and setup_env.json into test.jsonDaniel Mensinger7-47/+64
2020-02-25test: general refactoring of run_project_tests.pyDaniel Mensinger1-41/+44
2020-02-25Typo fix. [skip ci]Jussi Pakkanen2-2/+2
2020-02-25Document the project policy on mixing build systems. [skip ci]Jussi Pakkanen4-0/+62
2020-02-24Merge pull request #6658 from michaelbadcrumble/clean_meson_initDylan Baker1-53/+64
Update minit.py
2020-02-24Update minit.pyMichael Brockus1-3/+2
2020-02-24fixed issue with auto-detection failingMichael Brockus1-1/+2
2020-02-24use python set to tuple for checking membersMichael Brockus1-2/+2
2020-02-23Merge pull request #6637 from ↵Jussi Pakkanen19-106/+375
mesonbuild/nirbheek/implement-symbolextractor-windows Implement symbolextractor on windows + some cleanups/fixes
2020-02-23cmake2meson fix if nesting (#6676)Yann Dirson1-8/+17
2020-02-23Merge pull request #6602 from mensinda/depBoostJussi Pakkanen12-781/+1119
boost: System dependency rewrite