Commit Graph

7814 Commits

Author SHA1 Message Date
Nirbheek Chauhan 2cc9d79e95 FAQ.md: Add an entry for generated headers [skip ci]
Closes https://github.com/mesonbuild/meson/issues/5624
2019-07-10 01:00:42 +03:00
Nirbheek Chauhan 716140ddb4 unit tests: Fix CI failures in NativeFileTests
We can't rely on 'py' always being available in PATH, use
sys.executable which is the real path to Python 3.
2019-07-09 19:28:51 +05:30
Jussi Pakkanen fb4c95a322
Merge pull request #5620 from mesonbuild/testenvvar 2019-07-08 23:47:51 +03:00
Robin Kertels 96a6d621bf Add (v)c++latest to VC_VERSION_MAP 2019-07-08 23:46:12 +03:00
Jussi Pakkanen beae10f588 Update hotdoc files to match those produced by newest version. 2019-07-08 22:57:05 +03:00
Jussi Pakkanen 380dcedb86 Hack envvar override when running tests in-process. 2019-07-08 22:57:04 +03:00
Jussi Pakkanen b9a771fef8 Use environment variable overrides. 2019-07-08 22:57:04 +03:00
Jussi Pakkanen 84ac5ce51e Convert some methods to use mandatory named kwargs. 2019-07-08 19:36:15 +03:00
Norbert Nemec cc3993d1d4 move Gnu-specific feature '--print-search-dirs' to GnuLikeCompiler 2019-07-07 23:12:54 +03:00
Michael Hirsch, Ph.D 85cc424712 expanduser for tilde 2019-07-07 23:10:14 +03:00
Michael Hirsch, Ph.D 324c5b9aae check that compiler name is not blank or empty
pep8
2019-07-06 00:28:58 +03:00
Michael Hirsch, Ph.D 041de5814f BUGFIX: typo from 32e827dcdc broke PGI compilers 2019-07-06 00:26:59 +03:00
Jussi Pakkanen 42c9dde58e
Merge pull request #5584 from mesonbuild/fixed5483
Fix compiler flags not used for some tests
2019-07-05 23:58:00 +03:00
Jussi Pakkanen 785b0711cd Explain that using shell functionality is forbidden. [skip ci] 2019-07-05 23:39:16 +03:00
Jussi Pakkanen 74611ecb1f Fix unittests. 2019-07-05 22:27:10 +03:00
Marvin Scholz 5badc3912d compilers: Add missing cflags when calling compiler in link mode 2019-07-05 22:27:10 +03:00
Marvin Scholz 976c303603 compilers: Fix missing cflags for function detection
Fix #5481
2019-07-05 22:27:10 +03:00
ePirat b347f00dc0 Fix windres module argument flattening 2019-07-05 22:20:16 +03:00
Charlie Barto 1e182b51c6 Improve performance with windows defender ATP 2019-07-05 21:59:15 +03:00
Xavier Claessens dd8f75ad93
Document that add_languages() returns a boolean [skip ci] (#5600) 2019-07-05 14:19:04 -04:00
Marvin Scholz 0bf5c27b64 env: Do not return empty tool env vars
A compiler or other tool with an empty string as name does not make
sense as it anyway can not be used and causes a failure later in
parse_entry.

Fix #5451
2019-07-05 20:58:33 +03:00
Abhishek Pandit-Subedi 968aee4f18 Return zero in cross_sizeof
There is an error when compiling with -Werror=return-type. Non void
functions must return valid values.
2019-07-03 11:33:26 +03:00
Dylan Baker e3140fa2d2 dependencies/dev: Switch order of llvm dependency finders
Cmake ignores shared vs dynamic linking, and always returns static. This
went unnoticed, but results in regresssions for mesa. We need to fix
cmake, but with 0.51.1 due out shortly switching the order provides a
quick fix to restore expected functionality seems acceptable.

Fixes #5568
2019-07-02 23:27:28 +03:00
Dylan Baker 38f2034162 tests/llvm: Test both cmake and llvm-config methods 2019-07-02 23:27:28 +03:00
Daniel Mensinger 54b1c43277 mintro: Add installed subdirs introspection (fixes #5556) 2019-07-01 11:28:54 -07:00
Jussi Pakkanen ba6c0cab8f Use the same directory names for dist so that ccache works. Closes #5583. 2019-07-01 21:11:39 +03:00
Jussi Pakkanen 33aee8d113 Describe array values in install_dir. [skip ci] 2019-07-01 09:53:30 -07:00
Dylan Baker 866d105036 xcodebackend: Fix iterating compilers after host/build changes
Fixes #5570
2019-06-30 00:29:39 +03:00
John Ericson 3f280a81fd Remove build host mixing warning on native
There are two problems with this:

 - It has false positives when the code that trips it is conditional and
   no run on cross.

 - It confuses users who never wrote any `native` flags and don't care
   about cross.

Fixes #5509
2019-06-28 22:12:55 +03:00
Aleksey Gurtovoy 7423247413 Fix failing test_find_program test (Windows-only)
Skip finding a .py script w/o extension on Windows if `.PY` isn't in
PATHEXT; closes #4355
2019-06-27 21:30:34 +03:00
James Westman 77c3e6a4aa Fix two errors when cross-compiling with Vala
- AttributeError: 'ValaCompiler' object has no attribute 'get_program_dirs'

  Fixed by adding a `get_program_dirs()` function to the base Compiler
  class, to match `get_library_dirs()`

- KeyError: 'vala_COMPILER'

  Fixed by creating the Vala compile rules for all machines, not just
  the build machine.
2019-06-27 21:28:54 +03:00
John Ericson 9149aaba9c `add_{global,project}_{,link_}arguments`: simply native flag behavior
This further simplifies behavior to match the "build vs host" decision
we did with `c_args` vs `build_c_args`. The rules are now simply:

 - `native: true` affects `native: true` targets

 - `native: false` affects `native: false` targets

 - No native flag is the same as `native: false`

I like this because you don't even have to know what "build" and "host"
mean to understand how it works, and it doesn't depend on whether the
overall build is cross or not.

Fixes #4933
2019-06-27 21:24:50 +03:00
Dylan Baker 6e4e0028a1 meson_exe: Don't assert that we need an exe_wrapper when we say we don't need one
Fixes cross compiling mesa from x86_64 -> x86 on an x86_64 system.

Fixes #5567
2019-06-27 21:06:41 +03:00
Jussi Pakkanen af1a81fffc Improve error message when Python is not usable. [skip ci] 2019-06-27 20:45:58 +03:00
Aleksey Gurtovoy 8ebe3d46bb Fix faling test_msvc_toolset_version test
VCToolsVersion is not always set, and MS docs  recommend getting the
info from a file
2019-06-27 20:44:29 +03:00
Cody Schafer 11248eb203 sanitycheckc: avoid linking sanitycheckc when cross compiling 2019-06-27 20:36:09 +03:00
Alexander Kanavin ecbfc08dca gnome.py: correctly pick the compiler for gtk-doc builds 2019-06-27 09:17:49 -07:00
Iñigo Martínez 05da008480 docs: Fix link to SourceSet module in the navbar [skip ci] 2019-06-27 09:15:48 -07:00
Dylan Baker e182dba61f dependencies/base: Set PKG_CONFIG_SYSROOT_DIR from cross file
In some cases it may be necessary to set PKG_CONFIG_SYSROOT_DIR, like
when you've mounted a host architecture system in an arbitrary path.
Meson will now check the cross files for a [properties]:sys_root
variable and set the PKG_CONFIG_SYSROOT_DIR environment variable based
on that variable.

Fixes #3801
Fixes #4057
2019-06-26 23:28:33 +03:00
Jussi Pakkanen 41a0292993 Switch to using Pyinstaller. Closes #5550.
Cx_freeze has not been updated in a long time and does not
even work with Python > 3.5.
2019-06-26 11:51:54 +03:00
Michael Hirsch, Ph.D 31e069e93f fortran-specific openMP tests 2019-06-25 09:17:48 -07:00
Dylan Baker ec97bedd8a
Merge pull request #5524 from scivision/icl_ifort
Add ifort on Windows
2019-06-24 16:41:10 -07:00
Dylan Baker e2039da5d9 Split attribute visibility
* c_function_attributes: remove 'protected' from 'visibility'

This doesn't exist on macos with the apple compiler, which always causes
failures.

Fixes #5530

* compilers: Add split visibility checks to has_function_attribute

These check for a single visibility at a time, rather than all four at
once. This allows for finer grained searches, and should make using
these checks safer across operating systems.
2019-06-25 00:02:26 +03:00
Dylan Baker 42bef8d418 run_unitests: Skip the native_file_is_pipe test on cygwin
Since it hangs and causes azure to time out.
2019-06-24 13:51:34 -07:00
Marcel Hollerbach f39d2cc3bf meson: add cache for getting options
calling this function too ~60 sec. before, now 0.000435 sec.
2019-06-24 22:26:58 +03:00
Michael Hirsch, Ph.D f990c3eee4 typo 2019-06-24 14:07:32 -04:00
Michael Hirsch, Ph.D c89aa20941 known Python 3.5 on windows workaround for subprocess(cwd=str(Path)) 2019-06-24 14:06:33 -04:00
Michael Hirsch, Ph.D 2c9725a4bb only test if Zlib found 2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D 1d6ed8cac8 windows ifort can't do shared_library sanely 2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D cf7935be61 update compiler ID for windows INtel MPI 2019-06-24 14:06:32 -04:00