summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-01-28symbolextractor: use -nologo with lib.exe and llvm-lib.exeSteve Lhomme
It should be possible to just use the first line rather than the last.
2025-01-28Detect files with trailing spaceCharles Brunet
On Windows, if you accidently add a space at the end of a file name, like `files('myfile.txt ')`, the file is not reported as missing, because of the normalization performed by the OS. However, ninja will reference it with the trailing space, and will fail because the file does not exist. See https://github.com/python/cpython/issues/115104 for reference.
2025-01-28Merge pull request #13642 from dcbaker/submit/fix-objc-standardsJussi Pakkanen
Support lists for ObjC and ObjC++ standards
2025-01-28tests: enable gir static lib on cygwinDylan Baker
Where it is now working.
2025-01-28tests: disable vala generated test on cygwinDylan Baker
Which doesn't work with the packaged version of Vala
2025-01-28testcase expect_error(): add missing line from rebaseEli Schwartz
It was supposed to preserve the color for debugging meson project tests! Fixes: d51e20288853f376e9244671604176913f2e4e79
2025-01-28dependencies/dub: Fix arguments passed as strings that should be boolsDylan Baker
2025-01-28dependencies: version_compare -> version_compare_manyDylan Baker
It's possible to get an array of versions here, so we need to handle that.
2025-01-28dependencies: correctly handle a language of NoneDylan Baker
For whatever reason Meson has always used None == <C Language>. This doesn't make a lot of sense to me, but it's how things currently work, and our dependency factories should handle that correctly.
2025-01-28modules/python: Make sure that all dependency candidates meet interfaceDylan Baker
Because in at least one case it will lack the `log_tried` method.
2025-01-28dependencies/detect: make assertions more usefulDylan Baker
2025-01-28Fix to Meson failed to archive shared libraries in AIX.Aditya Vidyadhar Kamath
Closes mesonbuild#14185.
2025-01-28docs: clarify behavior of default_both_libraries optionDaiki Ueno
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2025-01-28When subproject() fails because downloading is disabled, say what failedEli Schwartz
It's not especially explanatory to say: ``` meson.build:357:34: ERROR: Automatic wrap-based subproject downloading is disabled ``` But if we instead say this: ``` ERROR: Subproject libsamplerate is buildable: NO meson.build:357:34: ERROR: Automatic wrap-based subproject downloading is disabled ``` It becomes a lot clearer to casual inspection, why it failed. And it matches the way we otherwise report errors for an unbuildable subproject (configure errors). Bug: https://github.com/jacktrip/jacktrip/issues/1380
2025-01-28fix edge case in testcase expect_error() if error is printed using mlogEli Schwartz
It catches the exception message itself, but for multi-line exceptions it may be worth print an error() as well as raising, to communicate multiple bits of information. When using the VS backend, this means that we get an actual `ERROR: ...` printed during a successful run, which then breaks msbuild as msbuild parses stdout of successful commands, regexes them for the word "error:" and interprets that as... an error. So a meson project tests example that uses testcase expect_error() and then successfully configures and builds, fails to successfully `meson --internal regenerate`. Sneak around this by doing our own pattern replace to evade msbuild. There is probably a way to tell msbuild to stop doing this, but that would require me understanding the vs backend well enough to patch the xml it generates. No thanks...
2025-01-28compilers/clang++: Add `-fpch-instantiate-templates` to speed up clang++ buildsinsunaa
- see https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5168
2025-01-27compilers: Check if GCC has support for ObjC and/or ObjC++Dylan Baker
Since this is optional, we should not accept that GCC is a valid ObjC or G++ is a valid ObjC++ Compiler unless we've tested that they can actually do a basic compile. This requires fixing a number of tests that have broken assumptions. In some cases I've split tests where issues with one language would hide the other. It would be great if we had a competent test framework that allowed subtests to skip, unfortunately we have python's unittest instead. Because of that we can't avoid extra tests by use of subtests.
2025-01-27unit tests: Test ObjC and ObjC++ as well as C and C++Dylan Baker
This tests ObjC and ObjC++ both with and without C enabled. I did this because I ran into issues where ObjC only worked when C was enabled, and then a later bug where C was disabled, due to the fact that C and ObjC both use `c_std` and not `objc_std`.
2025-01-27unit tests: make the test_c_cpp_stds test more robustDylan Baker
Check clang-cl as well as cl, and clang as well as gcc.
2025-01-27compilers: split Apple C++ version handling to a mixinDylan Baker
2025-01-27compilers: move Apple C Std version handling to a mixinDylan Baker
To avoid duplication between C and ObjC
2025-01-27compilers/objcpp: Use the GnuCPPStdMixin for ObjC++Dylan Baker
2025-01-27compilers/gnu: Split Gnu C++ standard handling into a mixin classDylan Baker
So we can re-use it in the ObjC++ standards
2025-01-27compilers/objc: Use Shared GNU C standard handlingDylan Baker
2025-01-27compilers/gnu: Pull C Standard handling out of GnuCCompilerDylan Baker
So we can re-use it for the ObjC code
2025-01-27compilers/objcpp: Use shared C++ standards with ClangCPPStandardDylan Baker
2025-01-27compilers/clang: split the Std handling for C++ out of the ClangCPPCompilerDylan Baker
We'll want to use this for the ObjC++ compiler too.
2025-01-27compilers/objc: Use shared C standards with clang C compilerDylan Baker
This means that the two compilers will update together, and that ObjC has the list behavior that C does.
2025-01-27compilers/clang: Move the Mixin for C standards out of the c moduleDylan Baker
We'll want to use this for ObjC as well, so we'll make it public and put it in a public place.
2025-01-27tests: mock the environment in setUpClassDylan Baker
When used as a class decorator VSCode can no longer see that BasePlatformTest is a TestCase. I hate having to adapt the code to the tools, but it's really annoying to not have completion and syntax highlighting.
2025-01-27tests: Add annotations for `assertMesonRaises`Dylan Baker
2025-01-27ninjabackend: Make header deps order-only depsarch1t3cht
As the comment to get_generated_headers says, these dependencies should be order-only dependencies. Fixes #10882.
2025-01-27backends: cache file names for ExtractedObjectsPaolo Bonzini
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-27backends: remove proj_dir_to_build_root from _determine_ext_objsPaolo Bonzini
This is a very hot function, improve the memoization of the results by removing an argument (that is almost always empty, in fact). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-27backends: remove unused argument from determine_ext_objsPaolo Bonzini
The proj_dir_to_build_root argument of determine_ext_objs is always empty, remove it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-01-27backends: memoize result of canonicalize_filenamePaolo Bonzini
2025-01-27Show real error if module exists but import failedMarco Rebhan
2025-01-27allow to compare multiple version with version_compareCharles Brunet
2025-01-27Merge pull request #14086 from dcbaker/submit/modernize-templatesJussi Pakkanen
Cleanup and modernize the templates and commands used by `meson init`
2025-01-27adding c_std=c2y option for gcc-15ajs
Signed-off-by: ajs <sam4lordjesus@outlook.com>
2025-01-27adding c_std=c2y option for clangajs
Signed-off-by: ajs <sam4lordjesus@outlook.com>
2025-01-26Add deb package creation script.Jussi Pakkanen
2025-01-26Bump version number for new development.Jussi Pakkanen
2025-01-26Bump version number for release.Jussi Pakkanen
2025-01-26Created release notes for 1.7.0.Jussi Pakkanen
2025-01-26Ask for testing help for the option refactor branch.Jussi Pakkanen
2025-01-26docs: Add missing release snippet for the TASKING compiler supportgerioldman
2025-01-21docs: clarify use cases for declare_dependency()LaserEyess
2025-01-21Revert "interpreterbase: Add disabler exception for `get_variable` method"Jussi Pakkanen
This reverts commit 82fedf04033305e2b28db1eea2346018c237d167.
2025-01-20Fix capitalization of "PyPI" in README.mdBrett Cannon
See https://pypi.org for confirmation of the capitalization.