aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2020-04-04backend/vs: Fix link of wmain / wWinMain based appsPeter Harris1-5/+0
Executables may have an entry point of wmain or wWinMain. These executables link successfully with ninja. Rather than add more flags to executable() in meson.build, remove the EntryPointSymbol override. This makes the vs backend behave more like the ninja backend. Fixes #6698
2020-04-04Make cc.has_function work on GCC/Clang __builtinsAndrei Alexeyev1-5/+6
2020-04-04Merge pull request #6843 from mensinda/ciJSONSCHEMAJussi Pakkanen1-2/+2
CI: Maintain docker images with GitHub Actions
2020-04-04mparser: fix precedence of arithmetic operatorsAndrei Alexeyev1-27/+33
The arithmetic operators are now split into two groups: * The add/sub group: +, - * The mul/div group: *, /, % All operators within the same group are left-associative and have equal precedence. The mul/div group has a higher precedence than the add/sub group, as one would expect. Previously every operator had a different precedence and was right-associative, which resulted in surprising behavior. This is a potentially breaking change for projects that relied on the old incorrect behavior. Fixes #6870
2020-04-03backend/vs: Fix debug information and runtime checksPeter Harris1-6/+6
Both DebugInformationFormat and BasicRuntimeChecks need to be in clconf (not type_config) for Visual Studio to recognize them. Fixes #6699
2020-04-03mtest: Improve test output formatting.Hemmo Nieminen1-22/+29
Remove some weirdness from test output such as extra commas, missing spaces and way too precise time durations. Also improve the overall alignment of the output.
2020-04-02interpreter: Fix Disabler support for modulesDaniel Mensinger1-2/+2
2020-04-01boost: Fix boost_python detection on bionic (fixes #6886 #4788)Daniel Mensinger1-0/+37
2020-04-01cuda: Fix meson template (fixes #6869)Daniel Mensinger1-2/+2
2020-04-01Fix meson_jar_templateJan Alexander Steffens (heftig)1-2/+2
It was generating an extra comma. The Meson build system Version: 0.54.0 Source dir: /tmp/tmp34halxhe Build dir: /tmp/tmp34halxhe/build Build type: native build meson.build:6:15: ERROR: Expecting rparen got comma. 'Foo.java',, ^ For a block that started at 5,3 jar('tmp34halxhe', ^ A full log can be found at /tmp/tmp34halxhe/build/meson-logs/meson-log.txt Using "tmp34halxhe" (name of current directory) as project name. Using "tmp34halxhe" (project name) as name of executable to build. Detected source files: Foo.java Detected language: java Generated meson.build file: project('tmp34halxhe', 'java', version : '0.1', default_options : ['warning_level=3']) jar('tmp34halxhe', 'Foo.java',, main_class: tmp34halxhe, install : true) It was also missing quotes around the main class name. The Meson build system Version: 0.54.0 Source dir: /tmp/tmpjm5cg44a Build dir: /tmp/tmpjm5cg44a/build Build type: native build Project name: tmpjm5cg44a Project version: 0.1 Java compiler for the host machine: javac (unknown 1.8.0) Host machine cpu family: x86_64 Host machine cpu: x86_64 meson.build:5:0: ERROR: Unknown variable "tmpjm5cg44a". A full log can be found at /tmp/tmpjm5cg44a/build/meson-logs/meson-log.txt Using "tmpjm5cg44a" (name of current directory) as project name. Using "tmpjm5cg44a" (project name) as name of executable to build. Detected source files: Foo.java Detected language: java Generated meson.build file: project('tmpjm5cg44a', 'java', version : '0.1', default_options : ['warning_level=3']) jar('tmpjm5cg44a', 'Foo.java', main_class: tmpjm5cg44a, install : true)
2020-03-29compilers: disable ccache when using temporary source filesLoïc Yhuel1-0/+5
When doing a compile test with a testfile.c, ccache fails since the path is random. So it's better to disable it, to avoid reporting this as a cache miss.
2020-03-29dist: Print location of generated tarballsXavier Claessens1-0/+1
Otherwise the location is not discoverable without reading online documentation.
2020-03-29dist: Add --no-tests optionXavier Claessens1-2/+6
It is not always needed to test generated tarballs, for example when they are generated by CI that already does its own testing.
2020-03-29compilers: Fix accidental coredata mutationsOle André Vadla Ravnås5-6/+12
2020-03-29environment: "power machintosh" is ppcDylan Baker1-4/+2
I've combined the two ppc checks into one, since they're not very complicated and added power machintosh, which is used by PPC macs running older versions of osx. Fixes: #6746
2020-03-29Report an errror if glib-compile-resources is missingJon Turney1-1/+4
Produce a diagnostic if we try to use gnome.compile_resources() when glib-compile-resources isn't present, rather than a python backtrace.
2020-03-29compilers: Fix C++ stdlib flags used for Apple's ClangOle André Vadla Ravnås1-2/+2
Should target libc++, not libstdc++.
2020-03-29Do not call restorecon if there are no files to installMichael Kuhn1-0/+4
Fixes #6452
2020-03-29Bump version number for new development. [skip ci]Jussi Pakkanen1-1/+1
2020-03-29Update everything for new release.0.54.0Jussi Pakkanen1-1/+1
2020-03-29cmake: Only expand executable targets in COMMAND (fixes #6857)Daniel Mensinger1-2/+10
2020-03-28Only split linker args with D compilers. Closes: #6845Jussi Pakkanen1-4/+8
2020-03-28boost: Better python module detectionDaniel Mensinger1-1/+33
2020-03-28boost: Better log found and missing modulesDaniel Mensinger1-4/+18
2020-03-24Make werror per subproject optionXavier Claessens3-3/+3
2020-03-24Clarify a workaround for older versions of LLD for MinGW (#6836) [skip ci]Martin Storsjö1-1/+3
The previous diagnosis (that the wrapper that injects the -target option to clang caused the issues) doesn't seem right; the issue was that LLD's MinGW frontend (which is invoked when ld.lld is given a COFF argument to the -m option) didn't handle the --version argument before LLD 9.0.0.
2020-03-24Bump version number for rc1.0.54.0.rc1Jussi Pakkanen1-1/+1
2020-03-24compilers: Clang can take linkers that are pathsDylan Baker1-0/+14
This will be a regression in 0.54.0 because we now enforce that gnu compilers only get gold, bfd, or lld.
2020-03-23gtkdoc: Add missing permitted kwargXavier Claessens1-1/+1
The 'check' kwarg was added in Meson 0.52.0.
2020-03-23Revert "Naturally use env vars a bit more to match Autoconf"Jussi Pakkanen1-2/+2
This reverts commit 097dfc085e6a1bb3c670880134a52dcfca504be7.
2020-03-23Naturally use env vars a bit more to match AutoconfJohn Ericson1-2/+2
PR #6363 made it so our interpretation of env vars no longer clashed with Autoconf's: if both Meson and Autoconf would read and env var, both would do the same things with the value they read. However, there were still cases that autoconf would read an env var when meson wouldn't: - Autoconf would use `CC` in cross builds too - Autoconf would use `CC_FOR_BUILD` in native builds too. There's no reason Meson can't also do this--if native cross files overwrite rather than replace env vars, cross files can also overwrite rather than replace env vars. Because variables like `CC` are so ubiquitous, and because ignoring them in cross builds just makes those builds liable to break (and things more complicated in general), we bring Meson's behavior in line with Autoconf's.
2020-03-23Fix legacy env var support with crossJohn Ericson15-150/+187
Fix #3969
2020-03-23Fix linker evn var testsJohn Ericson1-1/+2
Just because we are on windows doesn't mean we can use `link`. This ought to be done better, but this will do for now.
2020-03-23Fix ARMCC dependency generation.Szabi Tolnai1-1/+1
Change-Id: I661684ee8adf5a998641369cf5f13641699742d5
2020-03-22Add property to disable compiler sanity checks during cross compilation.Jussi Pakkanen2-2/+15
2020-03-21-Add xc16 and c2000 C,Cpp toolchain supportalanNz9-1/+527
2020-03-20Merge pull request #6544 from dcbaker/mpi-dependency-factoryJussi Pakkanen4-205/+170
Use DependencyFactory and ConfigToolDependency for MPI
2020-03-20Merge pull request #6636 from jon-turney/machine-detection-problemsJussi Pakkanen1-0/+3
Redetect machines when languages change
2020-03-19mpi: Use a factory functionDylan Baker2-198/+150
This makes use of proper ConfigTool and PkgConfig dependencies rather than one big ExternalDependency that internally creates other dependencies and then copies their attributes.
2020-03-19dependencies/base: Make the ConfigTool Dependency more flexibleDylan Baker2-7/+20
2020-03-19dependencies: Convert ScaLAPACK to a dependency factoryDylan Baker2-104/+133
Basically this breaks down into three cases. An open source version with compliant PkgConfig, valid CMake, and a Intel implementation that has completely broken PkgConfig. For the first two cases we can use standard classes, for the last we can make a subclass of PkgConfigDependency that handles the special logic. This doesn't change any of the logic, but it does re-organize it to be clearer, and make use of the dependency factory API, which makes other things (like Dependency.get_variable) work. This is untested with Intel MKL.
2020-03-19mtest: terminate a test via SIGTERM first then (if needed) via SIGKILLCamilo Celis Guzman1-7/+20
2020-03-19interpreterbase: Add warning when built-in object method has no kwargsXavier Claessens2-18/+35
2020-03-19cmake: Add find_package COMPONETS supportDaniel Mensinger4-7/+28
2020-03-19sample factory implementationMichael13-428/+482
2020-03-19Generators can depend on custom targets as well as build targets.Jussi Pakkanen1-1/+1
2020-03-19Merge pull request #6789 from dcbaker/deprecated-c-ldJussi Pakkanen3-11/+27
Make linker selection environment variables match docs
2020-03-19Remove my notes from sourcesClausKlein2-5/+0
changes acording review comments
2020-03-19Use os.path.normpath() for include pathsClausKlein2-3/+8
This make relative pathes shorter an too give a chance to de-duplicate -isystem flags just like -I flags. Fix common test case 203 for OSX build host too
2020-03-19Fix exe_wrapper usage in EmptyExternalProgram caseRichard Weinberger1-1/+1
If no exe_wrapper is set in the meson cross file the exe_wrapper object will be an instance of EmptyExternalProgram. So, found is True and prorgram is an empty list. This will cause meson to tun the compiler sanity check because it checks only for self.is_cross and self.exe_wrapper being not None. I ran into that situation while cross compiling for ia32 on a x64_64 host. The host had no ia32 userspace installed, so the self test failed. As workaround I currently set exe_wrapper to 'true'. Signed-off-by: Richard Weinberger <richard@nod.at>