Commit Graph

5165 Commits

Author SHA1 Message Date
Nirbheek Chauhan 0ec18a0531 wrap: Fix broken logic when initializing submodules
Also be more lenient when doing git checkout, and continue even if it
failed.

Closes https://github.com/mesonbuild/meson/issues/3088
2018-02-20 00:16:38 +02:00
Jussi Pakkanen 15358ecc9f Run FPGA tests. 2018-02-20 00:16:04 +02:00
Nirbheek Chauhan 93e983a49a
Users.md: Update some old/broken URLs
[skip ci]
2018-02-20 00:22:53 +05:30
Eric Engestrom 8a2d9e0ad4 docs: fix missing backtick 2018-02-19 23:46:34 +05:30
Nirbheek Chauhan e6c9923b47
Users.md: link to github page for easy editing
Also mention that software on the list will be tested for regressions.
2018-02-19 23:15:39 +05:30
Jussi Pakkanen 55a7c265c1
Merge pull request #2863 from jon-turney/exit-status-on-exception
Verify that failing tests are failing with an error, not a python exception
2018-02-18 13:54:50 +02:00
Jussi Pakkanen 1841d53a84
Merge pull request #2943 from ximion/master
Don't fail loading subprojects if subprojects_dir is in a subdirectory
2018-02-18 13:50:57 +02:00
Aleksey Filippov 8baaa7b866 Add python3 dependency documentation and link it from python3 module
Closes #3009
2018-02-18 13:50:33 +02:00
Matthias Klumpp a64a237d72 Don't mention "error" in error messages
Starting with VS 2017 if the output of any command run by VS contains
the word Error it will interpret that as a fatal error, even if the exit
error code is zero.
This messes up the unit tests on VS 2017, because we sometimes want to
deliberately ignore error messages.
Change "Error" to "Problem" to mitigate this issue until a more
permanent solution is found.
2018-02-17 23:20:26 +01:00
David Fort 8c12c2acc3 doc: fix typo in icestorm documentation 2018-02-17 13:32:46 +02:00
Jussi Pakkanen 6d7a8a0ea4
Merge pull request #2999 from peteruithoven/patch-1
Localisation documentation alternative
2018-02-16 00:11:39 +02:00
Jussi Pakkanen 6257fe9e35
Merge pull request #3004 from bredelings/clean-boost
Factor out code for windows abi tags.
2018-02-16 00:10:16 +02:00
Hemmo Nieminen ff1146bc8c Fix subproject prefix handling when checking subproject option validity. 2018-02-16 00:09:47 +02:00
Martin Ejdestig b06a4901cb Document how to set options in subprojects 2018-02-16 00:08:28 +02:00
Jussi Pakkanen d2445a15a1
Merge pull request #3069 from dcbaker/pch_one_arg
Fix targets with C and C++ code that use pre compiled headers
2018-02-16 00:08:06 +02:00
Jussi Pakkanen 2c18e4eb25 Updated docs to do "meson wrap" instead of "wraptool". 2018-02-15 23:41:57 +02:00
Niklas Claesson e88887be4a Only remove substring if it is part of string
Fixes #2661
2018-02-15 22:45:54 +02:00
Jon Turney 7297e9f7a3 Add source location to warning for comparing different types 2018-02-15 12:53:46 +00:00
Jon Turney f37692bedb Fix exception in 'test cases/failing/55 wrong shared crate type' when rustc is missing
Fix exception handling of missing rustc, by making it look like the other
compiler detectors

Traceback (most recent call last):
  File "/wip/meson/mesonbuild/environment.py", line 699, in detect_rust_compiler
    p, out = Popen_safe(compiler + ['--version'])[0:2]
[...]
FileNotFoundError: [Errno 2] No such file or directory: 'rustc': 'rustc'

During handling of the above exception, another exception occurred:

[...]
  File "/wip/meson/mesonbuild/environment.py", line 701, in detect_rust_compiler
    popen_exceptions[compiler] = e
TypeError: unhashable type: 'list'
2018-02-15 12:51:25 +00:00
Jon Turney 56286fd2b8 Fix test cases/failing/52 inconsistent comparison
Since PR #2884, this is failing with an exception

Keep the behaviour we have had since PR #1810 (0.41.0), that ordering
comparisons of different types fail with an InterpreterException.

Also warn about equality comparisons of different types, which will one day
become an error, as per PR #2884.
2018-02-15 12:51:25 +00:00
Jon Turney 9e6d3f903c Only expose exception() test function during unit tests 2018-02-15 12:51:25 +00:00
Jon Turney b78a01bced Add a test case for python exception exit status 2018-02-15 12:51:25 +00:00
Jon Turney 2a64ed855e Verify that failing tests are failing with an error, not a python exception
PR #2527 suggests "making failing tests more strict about failing
gracefully".

To achive this, make meson exit with distinct exit statuses for meson errors
and python exceptions, and check the exit status is as expected for failing
tests.

I can't see how to write a test for this, within the current framework.

You can test this change by reverting the fix (but not the test) from commit
1a159db8 and verifying that 'test cases/failing/66 string as link target'
fails.
2018-02-15 12:51:24 +00:00
Jussi Pakkanen 9dc995b3e9 Permit path separators in subproject names but with a warning. Closes #2794. 2018-02-14 23:59:20 +02:00
Dylan Baker b11035693c backends: Only add pch args that are appropriate for the compiler
Currently we try both C and C++ when determining which PCH files to
include. The problem with this approach is that if there are no C or C++
files (only headers) and the target has both C and C++ sources then the
PCHs will be passed to the wrong compiler.

The solution is less code, we already have the compiler, the compiler
knows what language it is, so we don't need to walk both C and C++.

Fixes #3068
2018-02-14 11:34:07 -08:00
Dylan Baker d3d0d4affb tests/15 mixed pch: Add a test using only the headers
Which is supposed to work for GCC and Clang.
2018-02-14 10:32:57 -08:00
Dylan Baker 1270af4b9a tests/15 mixed pch: Use current style 2018-02-14 10:31:18 -08:00
Amit D abd6db24f9 Update Users.md (#3063) 2018-02-14 20:14:15 +02:00
Jon Turney c027bb2c42 Ensure any generation error appears in the logfile and thus in CI output
Since c2a5ac39, MesonApp.generate() closes the logfile before returning,
which means that when invoked by mesonmain.run(), any MesonException is not
logged there.

MesonApp.generate() does not appear to have any other users I can find.

This somewhat reduces the diagnostic value of the logfile.

This also interacts badly with running project tests in CI, as _run_tests
chooses to report the logfile contents, rather than stdout, for the
configure step, and it thus doesn't report any configure error which caused
a test failure.
2018-02-14 19:15:30 +02:00
Jussi Pakkanen e2b5ac29d6 Only add reconfigure deps on files, not dirs. Closes #2919. 2018-02-14 19:14:30 +02:00
Hemmo Nieminen d0f620364f Fix a stack trace caused by subproject.get_variable('non-existing'). 2018-02-13 21:29:32 +02:00
Jussi Pakkanen ca4cbab004 Use absolute path if relative can not be evaluated. Closes #2784. 2018-02-13 21:28:42 +02:00
Daniel Foré a99ae81043 Add an example for gresource 2018-02-13 21:26:43 +02:00
Amit D 74306a9301 Update Users.md 2018-02-13 21:18:59 +02:00
Jussi Pakkanen c4892fb386 Space fix. 2018-02-12 22:32:39 +02:00
Alex Hirsch 3e8eab66a1 Do not set MALLOC_PERTURB_ for benchmarks
Setting MALLOC_PERTURB_ to a non-zero value is fine for regular test
cases. It helps catching bugs, but also comes with some runtime
overhead.

This overhead is noticeable for benchmarks when compared to running them
directly instead of through Meason.

Therefore, MALLOC_PERTURB_ is not touched for benchmarks.

closes #3034
2018-02-12 21:39:28 +02:00
Jussi Pakkanen 262eeb7e9e Clarify that int options are available since 0.45.0. 2018-02-12 21:36:03 +02:00
Matthias Klumpp b57b82eaf9 Add test for subprojects in subdirectories 2018-02-12 19:13:59 +01:00
Matthias Klumpp 3274f951d2 Don't fail loading subprojects if subprojects_dir is in a subdirectory 2018-02-12 19:12:44 +01:00
Matthias Klumpp f35606f61e Show a better error message if subproject can not be configured
Previously, Meson was showing a subproject being downloaded after later
claiming it doesn't exist.
This patch shows the actual error to clarify why the given subproject
can not be used.
2018-02-12 19:12:44 +01:00
Amit D e0ec5491a0 Update Users.md (#3050) 2018-02-12 21:42:43 +05:30
Andrea G 030c39f33e Use the same name for the conf_data variable
Before, each example used a different variable name making them more difficult to understand for a novice.
2018-02-12 19:48:57 +05:30
Andrea G d589cc26c7 Add missing closed parenthesis 2018-02-12 19:48:30 +05:30
Andrea G bfc18017f1 Add missing code block 2018-02-12 19:48:09 +05:30
Jussi Pakkanen 1b7b7fedb9
Merge pull request #2926 from jon-turney/dependency-factory
Fix dependency object types returned by custom dependency detection
2018-02-11 20:01:32 +02:00
Leon Krause 2fa44cf326 Enable default linker optimisations in MSVC release and minsize builds 2018-02-11 19:08:55 +02:00
Amit D 32ff169880 Update Users.md 2018-02-11 22:09:32 +05:30
Nirbheek Chauhan 15a1a317f4 wrap: Handle more submodule status cases
The '+' and 'U' cases should not happen normally because we don't run
any git commands if the subproject directory exists and contains
a meson build file. However, if the user accidentally messed up the
subproject checkout to a version that had no build files, we would
error out with an assertion.
2018-02-11 13:41:06 +02:00
Sami Kerola 70a7cf30a1 Re-link remaining github wiki urls to mesonbuild.com site 2018-02-11 13:39:46 +02:00
Jussi Pakkanen c267564a15 Fix filename. 2018-02-08 23:58:03 +02:00