summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Add thinlto support. Closes #7493."revertthinltoJussi Pakkanen2020-11-137-53/+15
| | | | This reverts commit 3e6fbde94c1cb8d4e01b7daf0282c315ff0e6c7d.
* Merge pull request #7866 from dcbaker/submit/compiler-std-in-baseJussi Pakkanen2020-11-134-170/+123
|\ | | | | Put the Compiler standard option in the Language mixin
| * clang-cl: Allow clang-cl (when compiling C) to pass std to underlying clang)Dylan Baker2020-11-121-34/+33
| | | | | | | | | | This allows a wider array of standard support than would be available directly from clang-cl, emulating MSVC stds.
| * compilers/c: Log that MSVC doesn't support gnu stdsDylan Baker2020-11-121-1/+13
| | | | | | | | | | | | | | | | | | Since the current approach of demoting to the nearest C standard *might* work, but might not. For projects like Glib that detect which standard is used and fall back this is fine. For projects like libdrm that only work with gnu standards, this wont. We're nog tusing a warning because this shouldn't be fatal if --meson-fatal-warnings is used. Also demote a similar message in IntelCl from warning to log.
| * compilers: define standards in the base language compilerDylan Baker2020-11-123-152/+71
| | | | | | | | | | | | And then update the choices in each leaf class. This way we don't end up with another case where we implicitly allow an invalid standard to be set on a compiler that doesn't have a 'std' setting currently.
| * compilers: Standardize the names of compiler optionsDylan Baker2020-11-123-16/+16
| | | | | | | | | | | | Most options don't use language prefaced options (std vs c_std) internally, as we don't need that due to namespacing. Let's do that across the board
| * compilers/c: Clang-cl also needs specific handling for standardsDylan Baker2020-11-121-0/+19
| |
| * Make MSVC accept gnu11 as a language standard version. Closes: #7611.Jussi Pakkanen2020-11-121-3/+7
| | | | | | | | Fixes: #7611
* | ninjabackend: fix matching of empty stringsAlexander Neumann2020-11-131-1/+1
| | | | | | closes #7977
* | Do not warn when -Wpedantic is added as a project argument.Eli Schwartz2020-11-131-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only way to add it via warning_level is top opt in to -Wextra too. But this is often not really desirable, since -Wextra is not stable -- it changes its meaning every compiler release, thus mysteriously adding new warnings. Furthermore, it's not really the same kind of warning -- a pedantic warning is always correct that your code is wrong, but defines wrongness as "not per the portable standard". Unlike -Wextra it doesn't try to judge your code to see if you're doing something that is "often not what you meant", but is prone to false positives. Really, we need different *kinds* of warning levels, possibly as an array -- not just a monotonically increasing number. But since there's currently nothing flexible enough to specify -Wpedantic without -Wextra, we will just remove the warning for the former, and let people add it to their project arguments in peace.
* | gnome: Handle libraries that are not in the current build dirSam Thursfield2020-11-1311-5/+387
| | | | | | | | | | | | The generate_gir() function previously assumed all library inputs were in the current build dir. This would fail if they weren't.
* | The version kwarg must be a string. Closes #7975.Jussi Pakkanen2020-11-131-0/+2
| |
* | doc: fix typo [skip ci]Eli Schwartz2020-11-121-1/+1
| |
* | interpreter: Add get_keys function for configuration_data (#7887)Jones2020-11-124-0/+16
| |
* | Merge pull request #7961 from dcbaker/submit/rust-color-outputJussi Pakkanen2020-11-122-3/+18
|\ \ | | | | | | Add color output support to rust
| * | compilers/rust: Add color outputDylan Baker2020-11-101-1/+7
| | | | | | | | | | | | | | | Rust has color output, although it's help doesn't document it. It uses the same values as cargo (and everything else), auto, never, always.
| * | ninjabackend: apply base compile_args to rust targetsDylan Baker2020-11-101-2/+5
| | |
| * | compilers/rust: Add vs_crt supportDylan Baker2020-11-101-0/+6
| |/ | | | | | | | | | | As far as I can Tell, rust just handles this for us (it's always worked with no special arguments from us). However, since we're going to add support for base options for rust, we need to add the method.
* | Merge pull request #7965 from dcbaker/wip/2020-11/macos-github-actionsJussi Pakkanen2020-11-1212-135/+133
|\ \ | | | | | | Migrate osx CI from travis to github actions
| * | CI: combine macos and ci_frameworks actionsDylan Baker2020-11-112-86/+25
| | | | | | | | | | | | | | | We're already covering most of the actions through the generic macos actions, but we should keep the qt4 action.
| * | travis: Drop osx supportDylan Baker2020-11-113-48/+15
| | | | | | | | | | | | We're now running this through github actions, no need for travis.
| * | actions: Add project tests actions for macosDylan Baker2020-11-111-0/+25
| | |
| * | actions: Add unittests for macosDylan Baker2020-11-112-0/+36
| | |
| * | tests/rust: dynamic linking doesn't work on darwinDylan Baker2020-11-112-0/+8
| | | | | | | | | | | | | | | This is a bug, and needs to be fixed, but in the short term testing other rust functionality on darwin is an improvement over testing none.
| * | tests/frameeworks 8/flex: fix undefined functionsDylan Baker2020-11-112-0/+8
| | | | | | | | | | | | | | | Some compilers don't have explicit errors for undefined functions enabled by default. Apple clang seems to.
| * | tests/28 multiline string: include required headersDylan Baker2020-11-101-0/+2
| | | | | | | | | | | | | | | we're relying on printf being defined with stdio.h, which happens to work sometimes. It doesn't work with Apple clang though.
| * | unittests: Don't try to set alternative linkers for apple-clangDylan Baker2020-11-101-0/+5
| | |
| * | workflows: be more conservative about launching msysDylan Baker2020-11-101-1/+9
| |/ | | | | | | | | we don't want to lanuch it if we're only modifying a different workflow template.
* | dependencies: Put pkgconfig options before operandsHaelwenn (lanodan) Monnier2020-11-123-5/+9
|/ | | | This fixes building with meson when the POSIX behavior of getopt is used, such as when GNU libc is used with POSIXLY_CORRECT=1 defined
* Fix WASM thread count option. Closes #7921.Jussi Pakkanen2020-11-091-2/+2
|
* Fix "generator doesn't stop" on WindowsChristoph Reiter2020-11-081-1/+1
| | | | | | | | | | | | | | When TemporaryDirectory() cleans up on __exit__ it sometimes throws OSError noting that the dir isn't empty. This happens after the first yield in this generator and leads to the exception being handled which leads to a second yield. contextlib.contextmanager() fails then since the function it wraps is only allowed to yield once. Fix this by not yielding again in the error case. Fixes #7947
* Add thinlto support. Closes #7493.Jussi Pakkanen2020-11-087-15/+53
|
* Fix host machine reporting typo in msetup.pyCorey McNeish2020-11-071-1/+1
|
* Fix clang-tidy return value reporting (#7949)Florian Schmaus2020-11-071-5/+4
| | | | | | | | | | | | | | | | | | | | | | * Fix clang-tidy return value reporting In case clang-tidy is invoked manually, i.e. if run-clang-tidy(.py) is not found, Meson would not report the return value. This is caused by ignoring the return value of manual_clangformat() in clangformat() within mesonbuild/scripts/clangtidy.py. Even though only more recent-versions of clang-tidy actually report an non-zero exit code if errors are found, there is no reason Meson shouldn't simply report any error codes it received from clang-tidy. Fixes #7948. * Rename methods in clangtidy.py from clangformat to clangtidy For some unknown reason, the method names in clangtidy.py are clangformat() and manual_clangformat(). This is confusing, as clang-format is not invoked by them, clang-tidy is. Hence rename those from {manual_}clangformat() → {manual_}clangtidy()
* docs: Recommend to use SPDX license identifiers [skip ci]Michael Weiss2020-11-052-10/+11
| | | | | | | | | | | | | | Some license identifiers are ambiguous (e.g. "GPL3"). The SPDX license identifiers avoid this by providing standardized and unique identifiers (e.g. "GPL-3.0-only" or "GPL-3.0-or-later" for the previous example). Because SPDX short-form identifiers are also both human- and machine-readable we should recommend them in the documentation. More information (advantages, details, etc.) can be found here: - https://spdx.dev/resources/use/#identifiers - https://spdx.dev/ids/ Fix #7905.
* rust: implement support for --editionDylan Baker2020-11-056-0/+57
| | | | | | | | | Using the std option, so now `rust_std=..` will work. I've chosen to use "std" even though rust calls these "editions", as meson refers to language versions as "standards", which makes meson feel more uniform, and be less surprising. Fixes: #5100
* rewrite: fix modified member spellingMarc-André Lureau2020-11-051-10/+10
|
* rewrite: fix function spellingMarc-André Lureau2020-11-051-3/+3
|
* docs: Fix broken anchor links [skip ci]Johan Bjäreholt2020-11-051-2/+2
| | | | | | Apparently anchor links are case-sensitive and needs to be lowercase in hotdoc. Prior to this change the anchor links were uppercase so the link did not refer to the anchor tag. Likely that there are more occurrences around the docs than this, have not looked.
* symbolextractor: Add FreeBSD supportThibault Payet2020-11-041-0/+20
|
* CI: install pytest pytest-xdist for msys2Christoph Reiter2020-11-041-1/+1
|
* CI: Port MSYS2 from azure-pipelines to github actionsChristoph Reiter2020-11-042-73/+86
| | | | This uses the msys2/setup-msys2@v2 to set up MSYS2
* pkgconfig: Make external deps of static library publicXavier Claessens2020-11-041-3/+6
| | | | | | | | | | | | | This fix a regression caused by https://github.com/mesonbuild/meson/pull/7837, it wanted to make InternalDependency's external_deps private but has side effect of making StatisLibrary's external_deps private too. It is technically correct to make them private, but Meson used to make StaticLibrary deps public so they are usable without `pkg-config --static` when we know there is only a static library available. Fixes: #7929.
* qt module: fix error message typo, translation qresource accepts qm not tsEli Schwartz2020-11-042-2/+3
| | | | Fixes #7925
* Bare exceptions are no longer allowed [NFC]Luke Drummond2020-11-042-3/+2
| | | | | | | | | | | | | The last instances of try: ... except: ... were removed in bf98ffca. The sideci.yml file was updated, but the flake8 config still allows this. Ensure that flake8 tests fail if this questionable construct appears again.
* wrap: fix type annotationsDylan Baker2020-11-031-2/+2
|
* wrap: Fix git exception not catched by interpreterXavier Claessens2020-11-031-1/+11
| | | | | | This is a regression introduced in Meson 0.56.0, it was fatal error when optional dependencies fails to download their fallback subproject.
* vim: Drop backwards compatibility with Vim 5.Aman Verma2020-11-031-30/+15
|
* Condense test directory names again.Jussi Pakkanen2020-11-031076-74/+74
|
* Fix #5492 (#7919)Elliot2020-11-012-7/+21
| | | | | | | | | * fix 5492 with cleaner code * remove argparse import * replace list(map( with list comprehension * pass str rather than Path to get_cmd_line_file