aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-10-19cmake2meson: improve exceptions, add type annotations, use argparseMichael Hirsch, Ph.D1-22/+22
2019-10-19Fix according to deprecation of usage of non-standard escape sequencesmakise-homura1-1/+1
2019-10-19Add a proper way to get include dirs for elbrus compilermakise-homura1-0/+13
2019-10-19Make search of library dirs correctmakise-homura1-2/+2
2019-10-18Documentation: Extend example for precompiled headersGerion Entrup1-5/+16
The documentation already contains an example for PCH but misses the to show the content of the PCH files and how to create them. With this commit exactly this is exlained.
2019-10-18syntax-highlighting: vim: add license header [skip ci]Liam Beguin3-0/+3
Add a license header before getting them in the Vim runtime.
2019-10-18xcode 64 bit for catalina [skip ci]Michael Hirsch, Ph.D1-1/+1
2019-10-18MPI: don't excessively skip Windows test cases, which can hide real problemsMichael Hirsch, Ph.D2-21/+27
2019-10-18mconf: Group all options per subproject and align all groupsXavier Claessens1-72/+115
Also hide value of yielding subproject options to make it clear the value must be set on the main project.
2019-10-18Add missing newlines to "meson introspect" errorAaron Plattner1-3/+3
The lack of newlines in the print() statement for this error causes the result to be jumbled and hard to read: $ ./meson.py introspect Current directory is not a meson build directory.Please specify a valid build dir or change the working directory to it.It is also possible that the build directory was generated with an oldmeson version. Please regenerate it in this case. Add newlines so the message is more readable: $ ./meson.py introspect Current directory is not a meson build directory. Please specify a valid build dir or change the working directory to it. It is also possible that the build directory was generated with an old meson version. Please regenerate it in this case.
2019-10-18default inc dirs: fix warning for unsupporte lang (fixes #6050)Daniel Mensinger1-2/+9
2019-10-18tests/1common: update meson_version>=0.52 for is_disablerMichael Hirsch, Ph.D1-1/+1
since 0.52 is indeed now required for this test case.
2019-10-18emscripten: fix false positives in linking testsAndrei Alexeyev1-0/+13
2019-10-18Refactor duplicate Emscripten code into a mixinAndrei Alexeyev3-26/+37
2019-10-15Add test case to verify identity cross buildsRoss Burton4-0/+32
A build with a cross file should always be identified as a cross build, even if the host and build machine are identical. This was the case in 0.50, regressed in 0.51, and is fixed again in 0.52, so add a test case to ensure it doesn't regress again.
2019-10-15Fix emscripten C compiler initializationAndrei Alexeyev2-6/+8
2019-10-15environment: Add missing space between wordsMatt Turner1-1/+1
2019-10-15envconfig: Add Alpha CPU familyMatt Turner2-0/+3
2019-10-14Workaround broken get_allow_undefined_link_args in DmdLikeCompilerMixinAndrei Alexeyev1-0/+3
Previously it worked by accident because BasicLinkerIsCompilerMixin had that method misspelled.
2019-10-14Revert "Remove BasicLinkerIsCompilerMixin from LDC and DMD"Andrei Alexeyev1-2/+2
This reverts commit 04d6a439457d76b9cf4c4f98fce238219366e241.
2019-10-14Remove BasicLinkerIsCompilerMixin from LDC and DMDAndrei Alexeyev1-2/+2
These compilers invoke external linkers and have the appropriate .linker property set. Therefore, BasicLinkerIsCompilerMixin appears to be misplaced. It used to work by chance, because BasicLinkerIsCompilerMixin failed to override the get_allow_undefined_link_args method. The D compilers do not provide their own get_allow_undefined_link_args, because they expect to inherit it from Compiler, which simply delegates it to the linker. Now that BasicLinkerIsCompilerMixin correctly overrides that method with a stub, it broke compilers that relied on the buggy behavior.
2019-10-14Implement get_linker_output_args in Emscripten compilersAndrei Alexeyev2-0/+6
2019-10-14Implement get_buildtype_linker_args in BasicLinkerIsCompilerMixinAndrei Alexeyev1-0/+3
2019-10-14Implement get_asneeded_args in BasicLinkerIsCompilerMixinAndrei Alexeyev1-0/+3
2019-10-14Implement get_allow_undefined_link_args in EmscriptenCPPCompilerAndrei Alexeyev1-0/+3
2019-10-14Implement get_allow_undefined_link_args in EmscriptenCCompilerAndrei Alexeyev1-0/+4
2019-10-14Implement get_linker_debug_crt_args in BasicLinkerIsCompilerMixinAndrei Alexeyev1-0/+3
2019-10-14Fix misnamed method in BasicLinkerIsCompilerMixinAndrei Alexeyev1-1/+1
get_allow_undefined_link_args is the compiler method get_allow_undefined_args is the linker method
2019-10-14syntax-highlighting: vim: set comment stringLiam Beguin1-0/+3
Vim can automatically comment and format comments. Set the necessary variable to enable that feature. See `:help format-comments` for more information.
2019-10-14environment: Fix detection of xild with iccDylan Baker1-1/+1
2019-10-11path interpreter--silently discard invalid Unix relative paths on WindowsMichael Hirsch, Ph.D1-0/+4
fixes #6000 The idea is that end-users want to specify an array of directories to search by default without an if/elif stack. It's obvious that Unix absolute paths are not absolute on Windows, so silently discard Unix absolute paths here for Windows instead of raising exception.
2019-10-11compilers: Fix version requirements for ClangC and AppleClangCTing-Wei Lan1-4/+4
Commit ff4a17dbef08a1d8afd075f57dbab0f5c76951ab modified the version requirements wrongly. AppleClangC should be the one with higher version numbers. Exchange them to fix the check.
2019-10-10cmake: Blacklist MS debug flags (fixes #6021)Daniel Mensinger1-1/+2
2019-10-10intel-cl: correct argument orderMichael Hirsch, Ph.D2-4/+4
2019-10-10BUGFIX: environment.py CudaCompiler missing info argMichael Hirsch, Ph.D1-1/+2
fixes regression for systems with nvcc installed--perhaps why not previously caught on CI. Just a simple typo--missing a positional argument to CudaCompiler() 0c22798b1ad4678abb205280060175678a790c4a is the first bad commit File "meson\mesonbuild\environment.py", line 1066, in detect_cuda_compiler return CudaCompiler(ccache + compiler, version, for_machine, is_cross, exe_wrap, host_compiler=cpp_compiler, linker=linker)# Please enter the commit message for your changes. Lines starting TypeError: __init__() missing 1 required positional argument: 'info'# with '#' will be ignored, and an empty message aborts the commit.
2019-10-10Merge pull request #6011 from xclaesse/not-disablerJussi Pakkanen2-4/+46
Fix `if not disabler()` case
2019-10-10Make parser errors print relative path to meson.build fileNiklas Claesson2-2/+19
2019-10-09Fix for issue 5355Michael Lenczewski1-0/+12
compiler.get_supported_arguments reports success for certain unsupported flags when using the gnu C/ObjC, C++/ObjC++ compilers. This fix reads the stderr on the has_arguments check to ensure the arguments really are supported and not valid for the language selection
2019-10-09Merge pull request #5833 from dcbaker/remove-compiler-typeJussi Pakkanen27-376/+544
Remove compiler type
2019-10-09Merge pull request #5907 from xhaakon/pdbJussi Pakkanen7-27/+72
Fix *.pdb files missing in meson introspect --installed output
2019-10-09environment: Detect sun4u and sun4v as sparc64Dylan Baker1-0/+2
Solaris returns these values. Fixes #6006
2019-10-09tests: Don't expect any *.pdb files installed in 'lib'Jakub Adam3-5/+0
Static libraries don't have PDB files. A PDB that would previously end up installed alongside a static library belonged in fact to the dynamic version of the same library built at the same time. This was because the former minstall.Installer implementation, when installing a file target, also blindly copied any *.pdb file it found whose filename was matching the target. So, for example installing foo.dll and foo.a would also install two copies of foo.pdb into both bin/ and lib/, which doesn't seem like the right thing to do - foo.pdb should only get installed with foo.dll.
2019-10-09Fix *.pdb files missing in meson introspect --installed outputJakub Adam4-22/+72
On Windows, make sure the introspect command lists all Program database (PDB) files containing debugging information that Meson will install.
2019-10-08Skip more tests if pkg-config is missingJan Beich1-0/+2
meson.build:13:2: ERROR: Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
2019-10-08Test disabler in foreach loopsXavier Claessens2-4/+22
The is_disabler() check in evaluate_foreach() was useless because we already checked that items is a list.
2019-10-08Fix `if not disabler()` caseXavier Claessens2-0/+24
Closes: #6010
2019-10-08doc: tell that unit-tests "priority" is introduced in 0.52 [skip ci]Gabriel Ganne1-0/+2
2019-10-08linkers: Concatenate -L and the directoryDylan Baker1-1/+1
It is perfectly valid to pass the arguments separately `-L /some/dir/`, however, meson later groups arguments by whether they start with -L or not, which breaks passing the -L and the directory separately. Fixes #6003
2019-10-08linkers: Use PosixDynamicLinkerMixin for CudaDylan Baker1-10/+1
Since cuda is currently reimplementing all of the shared methods itself, including a bug fixed by the next patch.
2019-10-07compilers: replace uses of mesonlib.is_<os>() with self.info.is_<os>()Dylan Baker3-24/+19
Since these are cross compilation safe, while the former is not.