Commit Graph

7542 Commits

Author SHA1 Message Date
nicole mazzuca 24d5c73b0a add -fno-exceptions if cpp_eh=none is specified 2019-05-05 21:19:04 +03:00
Jon Turney 261878f438 Fix an assertion exception when misusing install_data
* Failing test case for trying to install_data a custom_target

* Validate install_data() arguments are either string or file
2019-05-05 21:11:20 +03:00
Amit D 128d313b66 Update Users.md [skip ci] (#5358) 2019-05-04 14:59:48 +00:00
Dylan Baker 6c61edeb30
Merge pull request #5185 from mensinda/cmakeLLVM
CMake llvm dependency backend
2019-05-03 10:17:20 -07:00
Daniel Mensinger 25de6dd675
cmake: Fixed new thread dependency 2019-05-03 01:49:01 +02:00
Daniel Mensinger 1fba945b61
cmake: LLVM better modules handling 2019-05-03 01:39:16 +02:00
Daniel Mensinger 3f539e01ae
cmake: revert module name mapping 2019-05-03 01:39:16 +02:00
Daniel Mensinger 6a2faacdf9
cmake: minor code fixes 2019-05-03 01:39:16 +02:00
Daniel Mensinger 1280ef238b
cmake: Fixed list unit test 2019-05-03 01:39:16 +02:00
Daniel Mensinger 55379b7d0f
CMake: optional modules support 2019-05-03 01:39:16 +02:00
Daniel Mensinger a9930fe066
LLVM: Added CMake backend 2019-05-03 01:39:16 +02:00
Daniel Mensinger 5086e34d3a
cmake: Support different CMake files 2019-05-03 01:39:15 +02:00
Daniel Mensinger e0f19cf520
LLVM dependency refactoring 2019-05-03 01:39:09 +02:00
Dylan Baker 529d3788ab
Merge pull request #5254 from dcbaker/fix-sub-dependencies
Fix sub dependencies
2019-05-02 16:36:39 -07:00
Dylan Baker c0aa89e57f
Merge pull request #4952 from mensinda/cacheCompiles
Cache compilers.compile() in coredata
2019-05-02 14:54:02 -07:00
Ross Burton ae9a6417fe envconfig: mingw is also Windows
Also change the same idiom for Darwin to use a set().
2019-05-02 14:03:08 -07:00
Martin Hostettler ed109801c6 munstable_coredata: Adapt to coredata changes. 2019-05-02 23:55:53 +03:00
Dylan Baker edb1229a48 mesonlib: Make a few type annotations strings
Mypy know what to do with these and isn't confused, but some versions of
python 3.5 (at least 3.5.2) can't handle these annotations. By making
them strings the python interpreter wont try to evaluate them.

Fixes #5326
2019-05-02 23:38:36 +03:00
Jussi Pakkanen 1f4023fa47
Merge pull request #5311 from mensinda/flake8Plugins
Added flake8 plugins and some code fixes
2019-05-02 23:30:29 +03:00
Dylan Baker b59bec08a2 dependencies: Use the _add_sub_dependency 2019-05-02 13:28:33 -07:00
Dylan Baker 0654b1a2b1 dependencies/base: Add a new method for setting internal dependencies
When we create a dependency as part of another dependency (say Threads),
we want to pass down most of the methods (like required). Currently
however, there is the possibility that we can pass down invalid keyword
arguments, such as 'method'. This new method is meant to work around
that my simplifying and centralizing how we pass these dependencies
down.
2019-05-02 13:28:33 -07:00
Michael Hirsch, Ph.D 06bfc2dab6 per-target manual specification of link_language 2019-05-02 23:26:51 +03:00
Dylan Baker 98b7b0f5c2 tests: Extend tests that use Threads internally to set method
It turns out there's a bug in creating a sub dependency out of threads
in that we pass all of the kwargs from the parent to the
ThreadDependency instance. This demonstrates the bug.
2019-05-02 13:25:57 -07:00
Nicole Mazzuca 16463046b1 Add vc++ cpp_std flags to the documentation 2019-05-02 13:23:19 -07:00
Jussi Pakkanen 7059c47aad
Merge pull request #5161 from TheQwertiest/feature/custom_target_link
Can link against custom_target[i]
2019-05-02 22:21:56 +03:00
Peter Hutterer 70997ca969 mtest: check for an empty suite list
For consistency, it can be useful to have an explicit empty test suite list
for a test:

   test('test-name', binary, suite: [])

This currently passes meson but fails when running meson tests:

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 122, in run
    return options.run_func(options)
  File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 1005, in run
    return th.doit()
  File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 756, in doit
    self.run_tests(tests)
  File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 896, in run_tests
    visible_name = self.get_pretty_suite(test)
  File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 875, in get_pretty_suite
    rv = TestHarness.split_suite_string(test.suite[0])[0]
IndexError: list index out of range

Fix it by simply checking for the test suite to be a valid list we can pass on

Fixes #5340

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-05-02 22:12:58 +03:00
Jussi Pakkanen ec757492bf Describe how to add support for new compilers. [skip ci] 2019-05-02 21:58:03 +03:00
Jussi Pakkanen 7ac03f6264 Non-required appleframework deps should not be an error. Closes #5295. 2019-05-02 21:37:57 +03:00
John Ericson 4c2617a9c6 Add some type annotations and fix lints
Some things, like `method[...](...)` or `x: ... = ...` python 3.5
doesn't support, so I made a comment instead with the intention that it
can someday be made into a real annotation.
2019-05-02 10:58:23 -07:00
Michael Olbrich a15a8b7e24 Don't close fds when executing programs
This is basically the same as #1612 just for new new Popen_safe_legacy().
2019-05-01 21:28:29 +03:00
Daniel Mensinger 74b535fea7
Do not pass None to mlog.exception 2019-04-29 19:00:46 +02:00
TheQwertiest d74ab216db Cleaned up `isinstance` usage 2019-04-29 17:57:02 +03:00
TheQwertiest 61f9cdf962 Added special handling of CustomTargetIndex in VS backend 2019-04-29 17:12:02 +03:00
TheQwertiest 2d0550378a Added additional tests for linking with custom_target[i] 2019-04-29 16:08:50 +03:00
TheQwertiest 0ab9d474e1 Use parent `custom_target` for dependency handling (for consistency and future-proofing) 2019-04-29 16:08:50 +03:00
TheQwertiest 68a8481a05 Updated docs with information about `custom_target[i]` 2019-04-29 16:07:50 +03:00
TheQwertiest a098684cf3 Added tests for custom_target[i] 2019-04-29 16:07:50 +03:00
TheQwertiest 8c9a25456d Added custom_target[i] support for link_with and link_whole 2019-04-29 16:07:50 +03:00
Daniel Mensinger 236221061a
Fixed unnecessary .items() 2019-04-29 12:23:13 +02:00
Daniel Mensinger 5ec79185a0
Address code review 2019-04-29 12:23:13 +02:00
Daniel Mensinger 3581839f4c
Fix unused variables warnings 2019-04-29 12:22:50 +02:00
Daniel Mensinger 2b5831f94f
Fix flake8-bugbear warnings 2019-04-29 12:22:50 +02:00
Daniel Mensinger e75211d321
Fix builtin variable names 2019-04-29 12:17:40 +02:00
Daniel Mensinger bf98ffca9e
Fix blind exceptions 2019-04-29 12:16:06 +02:00
Jon Turney ccc4ce28cc consistent invalid escape sequence behaviour
* docs: document unrecognized escape sequence behaviour [skip ci]

Document that unrecognized escape sequence behaviour is like python, not
C.

* Don't try to decode invalid hex escape sequences

Don't try to decode escape sequences which should contain a sequence of
hex digits, but don't, throwing a python exception.  These will treated
literally instead.

* Extend test case to cover invalid escape sequences
2019-04-28 23:06:36 +03:00
Jussi Pakkanen 03d34a79f8
Merge pull request #5309 from jon-turney/ninja-backend-refactoring
Ninja backend refactoring
2019-04-28 21:51:06 +03:00
Stephen Gallagher 65091b7677 RPM Macros: Use `meson test` for %meson_test
Previously, this called out to the %ninja_test macro to run the
tests, but that limits us to only the arguments that ninja can
understand. In particular, it is not possible to add a test
timeout multiplier (such as is sometimes needed when building for
slow architectures such as armv7hl). With this patch, it will be
possible to specify `%meson_test -t 5` in the RPM spec file
without needing to patch the sources to extend the timeouts,
making life easier for packagers.

Related: https://github.com/mesonbuild/meson/issues/2037

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-04-28 20:30:30 +03:00
Jussi Pakkanen 9cd89f55fc
Merge pull request #5323 from scivision/pgiflang
Windows compiler fixes: PGI, Intel
2019-04-28 20:30:00 +03:00
Jussi Pakkanen 60969d99d3
Merge pull request #5265 from dcbaker/more-annotations
Fully annotate the envconfig and mlog modules
2019-04-28 20:20:25 +03:00
Daniel Mensinger cb1ef0c449 cmake: Use CMAKE_ROOT instead of _INCLUDE_FILE (closes #5218) 2019-04-28 19:29:56 +03:00