Commit Graph

10144 Commits

Author SHA1 Message Date
Oleg B b8052f9e50
Support native tests in crossbuild 2020-12-13 16:32:52 +02:00
Jussi Pakkanen 7437d9862a Add VCS ignore files to build dir on creation. Closes #6509. 2020-12-13 10:01:06 +00: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
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
Jussi Pakkanen d27bad7d6d
Merge pull request #8011 from dcbaker/submit/post-python36-cleanups
Python 3.6 cleanups
2020-11-22 04:28:19 +02:00
Jason Ekstrand 15bbf1ea75 Handle cmake dependencies which require a specified version
Some CMake packages fail to find at all if no version is specified.
This commit adds a cmake_version parameter to dependency() to allow you
to specify the requested version.
2020-11-21 07:55:10 -08:00
Jason Ekstrand 9dab27f814 run_project_tests: Use the test environment for install and clean 2020-11-21 07:55:10 -08:00
Dylan Baker ea416591a9 cmVers: use env instead of hardcoding bash location 2020-11-21 07:55:10 -08:00
Dylan Baker 954219f39e envconfig: use debug for "using * from environment variables messages
These are spammy, and being in the debug log is probably better anyway.
2020-11-21 07:55:10 -08:00
Dylan Baker 5c602b5457 setup.cfg: fix python requires to be 3.6.0 2020-11-20 15:24:51 -08:00
Dylan Baker 8d84d4b693 setup.py: fix check fro 3.5.2 which should be 3.6 2020-11-20 15:24:51 -08:00
Dylan Baker 630f9407ac Delete now dead < python 3.6 check 2020-11-20 15:24:51 -08:00
Dylan Baker f6672c7a19 use real pathlib module
We added the _pathlib module to work around defeciencies in python 3.5's
implementation, since we now rely on 3.6 lets drop this
2020-11-20 15:08:40 -08:00
Dylan Baker 51b361fdbe optinterpreter: organize the validation of arguments to be more readable 2020-11-20 14:48:35 -08:00
Dylan Baker 226945bbc7 optinterpreter: use PEP8 compliant names 2020-11-20 14:48:35 -08:00
Dylan Baker 49f8ff8410 optinterpreter: fix value being set in loop
This value shouldn't be set in the loop, it's probably been making
things slow, but also creates the potential that if choices is an empty
list that value would be unbound. While that's exteremly unlikly to
happen in practice, it is showing up as a warning from pylance.
2020-11-20 14:48:35 -08:00
Dylan Baker 93ecfa646b Add type annotations to optinterpreter 2020-11-20 14:48:35 -08:00
Dylan Baker cc34b71eaa Allow setting attributes in MesonException intializer
Instead of forcing them to be set afterwards
2020-11-20 14:48:35 -08:00
Dylan Baker cef406b3a5 run_unittests: delete test for external syntax highlighting
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
2020-11-20 10:24:00 -08:00
Dylan Baker 460cb9af08 unittests: ignore nix rpaths
As a necessity nix adds a bunch of rpaths to files, this is unavoidable
do to the way nix package management works. Meson doesn't expect this
however, and fails all rpath tests. To correct this we just ignore any
rpath entries that start with `/nix`.
2020-11-18 14:44:07 -08:00
Jussi Pakkanen 913374834c
Merge pull request #7894 from obilaniu/cudaupdates
Update unstable CUDA Module to support newest toolkits and drivers.
2020-11-18 23:12:15 +02:00
Jussi Pakkanen ef6f85f8ba
Merge pull request #7836 from bonzini/mtest-asyncio
[RFC] mtest: use asyncio instead of concurrency.futures
2020-11-18 23:09:47 +02:00
Michael Brockus 188695f202
Update Tutorial.md [skip ci] 2020-11-18 23:02:28 +02:00