Commit Graph

10263 Commits

Author SHA1 Message Date
Eli Schwartz 9a42779521
doc: fix typos for doubled words [skip ci]
"more more" is one place where we don't need more.

Fixes #8097
2020-12-14 21:24:34 -05:00
Laurin-Luis Lehning b9b2e0223e Less restrictive get_win_subsystem_args implementations 2020-12-14 11:23:53 -08:00
Laurin-Luis Lehning 4164efceca Propagate Windows target checks up 2020-12-14 11:23:53 -08:00
Laurin-Luis Lehning 919278e3e1 Give get_gui_app_args access to the Environment 2020-12-14 11:23:53 -08:00
Laurin-Luis Lehning 4053babf9c Slight consistency changes to get_gui_app_args 2020-12-14 11:23:53 -08:00
Laurin-Luis Lehning 76b577af11 Oversight in VisualStudioLikeLinkerMixin 2020-12-14 11:23:53 -08:00
Laurin-Luis Lehning 9de09e9aa6 Give get_win_subsystem_args access to env 2020-12-14 11:23:53 -08:00
Laurin-Luis Lehning 2fb4d1f751 Make win_subsystem a linker property 2020-12-14 11:23:53 -08:00
Jussi Pakkanen 9f1ba40252
Merge pull request #8013 from mesonbuild/cppmodules
C++ module support
2020-12-14 15:00:04 +00:00
Paolo Bonzini 79e2c52a15 mtest: only build what is needed for the tests
It is a usual workflow to fix something and retest to see if it is fixed using a
particular test.  When tests start to become numerous, it becomes time consuming
for "meson test" to relink all of them (and in fact rebuild the whole project)
where the user has already specified the tests they want to run, as well as
the tests' dependencies.

Teach meson to be smart and only build what is needed for the test (or suite)
that were specified.

Fixes: #7473
Related: #7830
2020-12-14 10:53:36 +01:00
Paolo Bonzini 879e9d19f5 mintro: export functions to load the meson-info files
With the next patch, "meson test" will be using the targets introspection
information.  Provide helper functions to share bits of code between
mintro.py and mtest.py.
2020-12-14 10:42:32 +01:00
Laurin-Luis Lehning bab1087422
Add support for driving lld-link indirectly through clang on Windows 2020-12-13 16:34:50 +02:00
Oleg B b8052f9e50
Support native tests in crossbuild 2020-12-13 16:32:52 +02:00
Jussi Pakkanen f22d54690b Add mypy annotations. 2020-12-13 16:09:50 +02:00
Jussi Pakkanen 26ffd4f8f2 Scan all C++ sources and ignore everything else. 2020-12-13 16:09:50 +02:00
Jussi Pakkanen 3df064484a Add unit test. 2020-12-13 14:03:22 +02:00
Jussi Pakkanen f390d22787 C++ module compilation works for a simple project. 2020-12-13 14:03:22 +02:00
Jussi Pakkanen 7437d9862a Add VCS ignore files to build dir on creation. Closes #6509. 2020-12-13 10:01:06 +00:00
Jussi Pakkanen 92e94b1e92 Generate dependency scanning hooks in the Ninja file. 2020-12-12 19:14:44 +02:00
Christoph Reiter 8d04b3ce74 CI: Move all remaining jobs from travis-ci to GHA
Some changes:

* Set HOME to /root, since github mounts its own HOME and 'wine'
  (because of permissions) and 'dub' (can't find packages) don't
  like that.
* Remove the seccomp option, doesn't seem to be needed.
2020-12-11 13:45:11 -08:00
Jussi Pakkanen 5bd1276d20 Create unit test for C++ modules and accept ixx as C++ source extension. 2020-12-11 19:21:02 +00:00
Jussi Pakkanen b8cb53791e Generate scanning rules for C++ modules. 2020-12-11 19:21:02 +00:00
Dylan Baker b65168c558 unit tests: correctly skip c++20 checks if the compiler doesn't support
them

I can't find a supported version for AppleClang, and you need relatively
recent versions of GCC and Clang for -std=c++20 to work.
2020-12-11 17:46:11 +05:30
Dylan Baker d4328011cf ci: run msys2 on run_unittests.py changes 2020-12-11 17:46:11 +05:30
Dylan Baker c94781b2e6 ci: rebuild macos image on run_unittest.py changes 2020-12-11 17:46:11 +05:30
Florian Schmaus a7aba905a0 compilers: add support for c++20/gnu++20
Fixes #8084.
2020-12-10 00:30:48 +02:00
Daan De Meyer afb5184ec9 Respect MESON_INSTALL_QUIET in gettext.py
Fixes #8068.
2020-12-10 00:29:40 +02:00
Xavier Claessens 0efcb0be5f pkgconfig: Respect variable ordering when passed as list
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.
2020-12-10 00:28:34 +02:00
Thomas Weißschuh 6b328ef7c4 install: don't elevate when using destdir
Previously the destdir was ignored completely when using elevated
privileges to install files as pkexec stripped the DESTDIR environment
variable.
As the destdir is not supposed to require any special privileges
anyways, just re-raise the error.
2020-12-10 00:26:28 +02:00
Thomas Weißschuh b3c869918b docs: fix "edit on GitHub" links 2020-12-10 00:26:28 +02:00
Daan De Meyer e828c670f5 Remove "Found runner: " logging message from meson compile
The ninja path is already logged as part of configure. Logging it
again every time when using meson compile is overly verbose and
doesn't add much value for the user.
2020-12-07 10:05:00 -08:00
Nirbheek Chauhan 1c631ec8ab msubprojects: Ignore worktrees when checking out
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.
2020-12-07 09:02:44 -05:00
Jussi Pakkanen c21b04ba08 Add prelinking support for static libraries. 2020-12-03 22:58:07 +02:00
Jerry Casiano 6e39dcad2f
Update Vala Preprocessor section in documentation. Closes: #8040 [skip ci] 2020-11-29 23:51:47 +02:00
mimi89999 631a7b5a2a Add aarch64 assembly test 2020-11-29 23:50:23 +02:00
Eli Schwartz 0fa808f706 Add script to create a zipapp.
Invoke create_zipapp.py from the root of the repository and it will
create a minimal zipapp with only the mesonbuild module code and a
__main__.py directly copied from meson.py

The meson.py launcher already tracks the desired entry point, and its
only other effect is to add the mesonbuild directory to the path if it
exists, which it won't in the zipapp. So there's no need to duplicate
this into another __main__.py
2020-11-27 18:12:08 +02:00
Eli Schwartz df50123c05 createmsi: move to generic packaging directory
We might want to create other dedicated packaging scripts, and put them
all in one directory.
2020-11-27 18:12:08 +02:00
Jussi Pakkanen cef13b04c2 Bump Ninja requirement to 1.8. 2020-11-26 20:28:55 +02:00
Michael Hirsch, Ph.D 87b2aeb54c rename .lgtm.yml to reduce top-level directory ls clutter
.lgtm.yml is also good filename:
https://lgtm.com/help/lgtm/lgtm.yml-configuration-file
2020-11-25 09:23:58 -08:00
Dylan Baker 8915538c31 compilers/fortran: Add "none" to intel compielrs for standards
Fixes #8023
2020-11-24 23:11:23 -05:00
Paolo Bonzini 0deab2ee9e
compiler: allow non-built internal dependencies as arguments
Allow methods on the compiler object to receive internal dependencies,
as long as they only specify compiler/linker arguments or other
dependencies that satisfy the same requirements.

This is useful if you're using internal dependencies to add special
"-D" flags such as -DNCURSES_WIDECHAR, -D_XOPEN_SOURCE_EXTENDED or
-DGLIB_STATIC_COMPILATION.
2020-11-24 00:03:35 +02:00
Jussi Pakkanen b53505a9dc
Merge pull request #7982 from dcbaker/submit/unittest-fixups
Unittest fixups
2020-11-24 00:02:22 +02:00
Michael Brockus 9d651fe61e
add dependency recommendation [skip ci]
Co-authored-by: Eli Schwartz <eschwartz@archlinux.org>
2020-11-23 13:51:16 -05:00
Christoph Reiter 58640bdff9 Remove AutoDeletedDir
Replace the only usage with a simple try/finally and remove the class.
2020-11-23 09:26:41 -08:00
Christoph Reiter edbcb2bfc8 Replace various calls to AutoDeletedDir with TemporaryDirectoryWinProof
AutoDeletedDir was a workaround to TemporaryDirectory not using
windows_proof_rmtree(). TemporaryDirectoryWinProof does now, so replace
it.
2020-11-23 09:26:41 -08:00
Christoph Reiter abc7e6af01 Add a variant of TemporaryDirectory that uses windows_proof_rmtree()
Adds TemporaryDirectoryWinProof which calls windows_proof_rmtree() on
error.

Use instead of hacky error handling (which might shadow other OSError)
in Compiler.compile().
2020-11-23 09:26:41 -08:00
Eli Schwartz 1db800bf67 doc: fix confusing use of "build" as a directory argument [skip ci]
In most places, we now refer to "builddir/" which is a lot less likely
to make people think it is a subcommand which needs to be used
literally.

This is a regression since commit 276d342eba
due to the existence of new docs which were added later on, using the
wrong form.
2020-11-22 18:29:55 -08:00
Christoph Reiter c2f647867e CI: install glib for the MSYS2 jobs to make pkgconf happy
Fixes a test when using pkgconf instead of pkg-config.

The .pc file in the pkgconfig-gen test requires it and pkgconf seems be
stricter here and fails to validate.
2020-11-23 02:14:09 +02:00
Christoph Reiter 9d3aa63681 CI: fix a typo in the msys2 workflow trigger paths 2020-11-23 02:14:09 +02:00
Jussi Pakkanen 3d009609fb
Merge pull request #8010 from dcbaker/submit/optinterpreter-cleanups
Opt Interpreter cleanups and type annotations
2020-11-22 04:30:26 +02:00