aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-01-06Bump versions to 0.56.1 for release0.56.1Nirbheek Chauhan2-2/+2
2021-01-06run_unittests: delete test for external syntax highlightingDylan Baker1-46/+0
It's a bit odd we have a test for an external project that's not even in the meson organization. Regardless, the json file was recently replaced by a cson file. There is an coffee-script-notation parser in pypi, but I couldn't get it to work. Just delete the test
2021-01-06cmake: fix missing languages from CMake (fixes #8132)Daniel Mensinger9-8/+80
2021-01-06cmake: fix -framework dependencies (fixes #8045)Daniel Mensinger3-0/+33
2021-01-06depfixer: split new rpath into multiple entries for dedup comparisonsAlan Coopersmith1-1/+1
Fixes: #8115 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-01-06linkers: add rpath_dirs_to_remove support to SolarisDynamicLinkerAlan Coopersmith1-1/+6
Applies the changes made to GnuLikeDynamicLinkerMixin by commit d7235c5905fa98207d90f3ad34bf590493498d5b to SolarisDynamicLinker This makes test_build_rpath pass with the Solaris linker, where before this change it failed with: New rpath must not be longer than the old one. Old: $ORIGIN/sub:/foo/bar New: /baz:$ORIGIN/sub:/foo/bar FAILED: meson-install Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-01-06cmake: Revert to using self.for_machine instead of MachineChoice.BUILD ↵Daniel Mensinger4-2/+6
(fixes #8028)
2021-01-06pkgconfig: Respect variable ordering when passed as listXavier Claessens2-2/+3
This fix a regression introduced in Meson 0.56.0 when using python 3.5. Also mention in documentation that using a meson dict does not guarantee ordering. Fixes: #8074.
2021-01-06msubprojects: Ignore worktrees when checking outNirbheek Chauhan1-1/+1
Otherwise it's not possible to share git subprojects via worktrees when creating a worktree of a git repository that uses meson subprojects. The downside is that the user needs to be careful while adding commits to each tree's index.
2021-01-06Add aarch64 assembly testmimi899991-1/+10
2021-01-06environment: Fix detection of rust compilers, moreDylan Baker2-12/+29
2021-01-06compilers/rust: warn about setting -C linker in your compiler argsDylan Baker1-0/+7
2021-01-06compilers/rust: add and use an implementation of use_linker_argsDylan Baker2-7/+11
2021-01-06run_unittests: use textwrap.dedentDylan Baker3-28/+34
So that editors that can fold code (vim, vscode, etc) can correctly fold functions, instead of getting confused by code that doesn't follow the current indention. Also, it makes the code easier to read.
2021-01-06ninjabackend: Fix a couple of rust bugsDylan Baker1-2/+3
There are two bugs here, first is that we open coded the output args, instead of using the compiler method. The second is that rust args are not passed down to the backend invocation.
2021-01-06environment: Properly pass linker to rustcDylan Baker1-7/+9
rustc is very different than other compilers, in that it doesn't generate object files, it just creates a final target out of the intermediate sources. As such, it needs to know about the linker args in the compiler invocation.
2021-01-06Fix WASM thread count option. Closes #7921.Jussi Pakkanen1-2/+2
2021-01-06Fix "generator doesn't stop" on WindowsChristoph Reiter1-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
2021-01-06pkgconfig: Make external deps of static library publicXavier Claessens1-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.
2021-01-06qt module: fix error message typo, translation qresource accepts qm not tsEli Schwartz2-2/+3
Fixes #7925
2021-01-06wrap: Fix git exception not catched by interpreterXavier Claessens1-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.
2021-01-06interpreter: store correct files for project regenerationDylan Baker6-6/+46
Right now sub-sub projects are not correctly registered, because we don't have a way to pass up past the first level of subproject. This patch changes that by making the build_Def_files as defined in the Interpreter initializer accurate for translated dependencies, ie, cmake dependencies won't define a dependency on a non-existent meson.build. This means that it can always add the subi.build_def_files because they are always accurate.
2020-11-06compilers/c: Clang-cl also needs specific handling for standardsDylan Baker1-0/+19
2020-11-06Make MSVC accept gnu11 as a language standard version. Closes: #7611.Jussi Pakkanen1-3/+7
2020-10-30Bump version number for release. This is the 10 000th commit!0.56.0Jussi Pakkanen30-324/+359
2020-10-30environment: Fix detection of swift linkerDylan Baker1-2/+2
Apparently in some cases swift prints to stderr instead of stdout
2020-10-28Fix gtest invoking while workdir is set (#7904)Sergey Kartashev1-3/+3
* Fix gtest invoking while workdir is set * Fix gtest invoking when workdir is not set * Code style fix Co-authored-by: Sergey Kartashev <kartashev.sv@mipt.ru>
2020-10-26Update version number to rc2.0.56.0.rc2Jussi Pakkanen1-1/+1
2020-10-24cmake: set CMP0054 to new in preload.cmakeDaniel Mensinger2-1/+11
https://cmake.org/cmake/help/latest/policy/CMP0054.html
2020-10-24cmake: Disable the new (CMake 3.16) PCH supportDaniel Mensinger6-2/+40
Subprojects that use the CMake PCH feature will cause compilation/linker errors. The CMake PCH support should thus be disabled until this can be properly translated to meson.
2020-10-24cmake: Always create missing includes in build dirDaniel Mensinger1-4/+1
There really isn't any reason to not always create missing include directories inside the build dir. Just restricting this to generate generated sources should work in an ideal world, however, there exists lots of suboptimal CMake code where this assumption is not always true.
2020-10-22depenencies/llvm: Handle llvm-config --shared-mode failing (#7379)Dylan Baker5-40/+68
* depenencies/llvm: Handle llvm-config --shared-mode failing Fixes: #7371 Fixes: #7878 * test cases/llvm: Refactor to use test.json Instead of trying to cover everything internally
2020-10-22Syntax.md: Fix variable used in substring exampleDanilo Spinella1-2/+2
2020-10-22pkgconfig: Define libdir and includedir in -uninstalled.pc filesXavier Claessens1-6/+5
This fixes glib-2.0-uninstalled.pc file. GLib does `extra_cflags : ['-I${libdir}/glib-2.0/include']` because some of its headers gets installed there. But when used uninstalled that path makes no sense and pkg-config aborts because ${libdir} is not defined. This cannot be worked around by GLib because Meson does not allow setting different `extra_cflags` for -uninstalled.pc, and does not allow setting libdir in `uninstalled_variables`.
2020-10-19interpreter: Add missing new feature flag for executable(win_subsystem)Dylan Baker1-1/+2
I noticed this when reviewing #7872
2020-10-19fix markdown issuePaolo Bonzini1-1/+1
2020-10-19switch gui_app deprecation to FeatureDeprecatedKwargsPaolo Bonzini2-1/+1
The deprecation message for "gui_app" is appearing for every target rather than just once, and even if the required version is older than 0.56.0. Use @FeatureDeprecatedKwargs to fix both issues.
2020-10-19fix typo "machintosh" -> "macintosh"Ken Cunningham1-1/+1
fixes machine detection for power macintosh systems
2020-10-19Bump version number for rc1.0.56.0.rc1Jussi Pakkanen2-3/+3
2020-10-19Remove a status message that leaks to stdout.Jussi Pakkanen1-1/+3
2020-10-19In text, betterer grammer usings.Jussi Pakkanen4-4/+4
2020-10-19Add delays to test for timestamp issues on mac.Jussi Pakkanen1-0/+12
2020-10-18build: use PIE objects for static libraries if b_staticpic=false but b_pie=truePaolo Bonzini2-8/+12
If static_library is used as a convenience library (e.g. for link_whole) it should in principle not need position independent code. However, if the executables that the libraries is linked to are PIE, the non-PIC objects in the static library will cause linker errors. To avoid this, obey b_pie for static libraries if either b_staticpic=false or they use "pic: false". Without this patch, QEMU cannot use b_staticpic, which causes a slowdown on some QEMU benchmarks up to 20%.
2020-10-17Fix gnome.compile_resources() when glib is a subprojectXavier Claessens2-34/+39
When glib is a subproject we should use glib-compile-resources it overrides using find_program() in the case it is not installed on the build machine. With old glib version we have to run glib-compile-resources at configure time to generate the list of dependencies, but not when glib is recent enough.
2020-10-17pkgconfig: InternalDependency's ext_deps should be private by defaultXavier Claessens2-2/+3
This fixes a regression introduced by https://github.com/mesonbuild/meson/pull/7488. InternalDependency's ext_deps previously where simply ignored, but that PR has effect to add many more public Requires in generated pc files.
2020-10-17Merge pull request #7859 from mensinda/cmBlacklistJussi Pakkanen4-3/+41
cmake: ignore CMAKE_TOOLCHAIN_FILE and CMAKE_PROJECT_INCLUDE
2020-10-16Subprojects should not inherit parent overrideXavier Claessens1-5/+2
This was the behaviour in 0.55.0, so this test was assuming a behaviour change. Revert it to the behaviour we had in 0.55.0.
2020-10-16Machine file pkg_config_path overrides environmentXavier Claessens3-13/+15
This is consistent with c_args in machine file overriding CFLAGS from env. This also spotted an issue where in a native build this resulted in pkg_config_path being /bar instead of /foo: `-Dpkg_config_path=/foo -Dbuild.pkg_config_path=/bar` Fixes: #7573
2020-10-16Add test case for "subproject:opt" in project()Xavier Claessens3-0/+7
This is regression test for #7573
2020-10-16Refactor handling of machine file optionsXavier Claessens6-221/+140
It is much easier to not try to parse options into complicated structures until we actually collected all options: machine files, command line, project()'s default_options, environment.