Commit Graph

7981 Commits

Author SHA1 Message Date
Marc-André Lureau 451a32d1c8 meson: skip captured write if content didn't change
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-07-15 19:11:47 +00:00
Dylan Baker 7803056ef2 run_unittests: use sys.executable on Windows for python
Instead of trying to guess whether we need py or python3, and then
falling over when whatever we guessed isn't in the path or isn't right,
just use sys.executable which should always work.
2019-07-15 10:59:22 -07:00
Dylan Baker 42d34095b4 compilers/mixins/pgi: Finish type annoations 2019-07-15 10:59:22 -07:00
Dylan Baker fab47c5680 compilers: split pgi compiler out of compilers module 2019-07-15 10:59:22 -07:00
Dylan Baker f574beffb4 compilers/mixins/elbrus: add type annotations and fix types
There is a pretty big error in here, trying to return a tuple
comperhension: (a for a in []) is not a tuple, it's a generator. This
has profound type annotations: generators don't support most tuple or
list methods, and they can only be iterated once. Beyond that tuples are
meant for heterogenous types, ie, position matters for types. I've
converted the output to a list in all cases.
2019-07-15 10:59:22 -07:00
Dylan Baker 5d685e7a5c compilers: put elbrus in mixins 2019-07-15 10:59:22 -07:00
Dylan Baker 1b276598ce compilers/mixins/clang: Add type annotations 2019-07-15 10:59:22 -07:00
Dylan Baker bc4438b34f compilers: Put clang mixin in a module 2019-07-15 10:59:22 -07:00
Dylan Baker 51b04204c9 compilers/mixins/arm: Add type annotations to armclang 2019-07-15 10:59:22 -07:00
Dylan Baker e879992114 compilers: move ArmClang into mixins/arm.py 2019-07-15 10:59:22 -07:00
Dylan Baker 521e057d97 compilers/mixins/intel: add type annotations 2019-07-15 10:59:22 -07:00
Dylan Baker b8368c1617 compilers: Put Intel compiler classes into the mixins folder 2019-07-15 10:59:22 -07:00
Dylan Baker 488e852e70 compilers/mixins/gnu: Add type annotations 2019-07-15 10:59:22 -07:00
Dylan Baker cd5360821a compilers: split gnu and gnulike compilers out of compilers
I debated a bit whether both classes really belong in the same module,
and decided that they do because the share a number of helpers.
2019-07-15 10:59:22 -07:00
Dylan Baker d68969f169 compilers/mixins/visualstudio: Add type annotations 2019-07-15 10:59:22 -07:00
Dylan Baker 214ab455d3 compilers: Move the VisualStudioLikeCompiler class into mixins 2019-07-15 10:59:22 -07:00
Dylan Baker 51c66752a9 compilers/mixins/arm: Add type annotations 2019-07-15 10:59:22 -07:00
Dylan Baker ef448b95ae compilers: Move ArmCompiler to a mixin module 2019-07-15 10:59:22 -07:00
Dylan Baker 675874c303 compilers/mixins/ccrx: add type annotations 2019-07-15 10:59:22 -07:00
Dylan Baker 4d5c745bdc compilers: move ccrx compiler abstraction into mixins 2019-07-15 10:59:22 -07:00
Dylan Baker d483da46a9 compilers: Move clike into a mixins directory
The compilers module is rather large and confusing, with spaghetti
dependencies going every which way. I'm planning to start breaking out
the internal representations into a mixins submodule, for things that
shouldn't be required outside of the compilers module itself.
2019-07-15 10:59:22 -07:00
David Seifert cd12a6fc39 Add test to catch `-Werror=unused-parameter` brittleness 2019-07-14 15:12:16 +00:00
David Seifert fcf27c2a2d Do not fail on passing `-Werror=unused-parameter` from environment 2019-07-14 15:12:16 +00:00
Thibault Saunier 6813ef1e24 cmake: Handle disabling subprojects 2019-07-13 05:17:01 +00:00
Christoph Weiss 185238fdb4 Change meson test's build failure exit code to 125 2019-07-12 21:51:17 +03:00
Nirbheek Chauhan 264533cb67 unit tests: Don't keep builddirs inside source tree on Cygwin
Seems to cause the umask tests to fail:
https://github.com/mesonbuild/meson/pull/5546#issuecomment-509666523
2019-07-12 21:49:48 +03:00
Michael Hirsch, Ph.D d5cb1c2f19
Merge pull request #5560 from scivision/cstd18_bug
add clang c_std=c18 alias and cleanup logic for compiler version unit tests
2019-07-11 19:23:05 -04:00
Michael Hirsch, Ph.D 8c6e98c847 Remove unnecessary setup.cfg lines that confound offline use 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 23ef8045a9 setup.py >= python 3.5.2 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D a90a9aac84 doc 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 40bf83fd46 minimum python 3.5.2 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D cb7d236696 pythonic file checks 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 6727e5f5ad add missing commas 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 4b9625ac06 ENH: metadata PEP390 setup.cfg
https for Meson docs url

Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2019-07-11 22:37:25 +03:00
myfreeweb efea48788a Ignore -D* and -fstack-protector* args for D compilers
Fixes #5369
2019-07-11 22:32:39 +03:00
Daniel Mensinger 5bd21a96b8 cmake: Fix dependencies with try_compile (closes #5605) 2019-07-11 02:07:00 +03:00
Norbert Nemec 555847f20f Fix MSVC /link argument ordering (#5598)
* correct handling of LDFLAGS in find_library and sanity_check on MSVC (fixes #3629)

The MSVC compiler requires all linker flags to be placed after the compiler flags, separated by a "/link" argument. This was already handled for regular linking commands, but not yet for the aforementioned special code paths.

* on MSVC, add /link separator between compiler and linker flags when it is missing

* avoid unnecessary /link argument
2019-07-11 02:05:48 +03:00
Jussi Pakkanen 19cda6b7c9
Merge pull request #5606 from xclaesse/alias_target
Add alias_target() function
2019-07-11 00:34:40 +03:00
gjaeger1 30e42009c0 Adapting Boost Python library detection to Boost >= 1.67. Closes #4288. 2019-07-11 00:30:58 +03:00
Xavier Claessens d8b3af00ac vs backend: commandrunner.py takes source dir first 2019-07-10 15:01:18 -04:00
Xavier Claessens 12d4031f52 Add alias_target() function 2019-07-10 15:01:18 -04:00
Norbert Nemec 748c9d817d try IMPORTED_IMPLIB before IMPORTED_LOCATION for cmake dependencies 2019-07-10 20:14:16 +03:00
Jussi Pakkanen 4751f6d854
Merge pull request #5574 from mensinda/cmakeCCmd
CMake subprojects add_custom_command support
2019-07-10 19:31:17 +03:00
Jussi Pakkanen 724113849c Warn if the user manually adds arguments we have builtin support for. 2019-07-10 01:05:47 +03:00
Norbert Nemec 4b25253bfd Reference error code as hex value and improve comment 2019-07-10 01:03:01 +03:00
Norbert Nemec 62c975659f diagnostics for missing DLLs on Windows in meson_exe.py 2019-07-10 01:03:01 +03:00
Charlie Barto 687bd31317 Make faster w defender atp 2019-07-10 01:02:05 +03:00
Jussi Pakkanen 15d56079ad
Merge pull request #5621 from mesonbuild/paralleltests
Run tests in paralled with pytest when installed
2019-07-10 01:01:21 +03:00
Nirbheek Chauhan a310ba863e FAQ.md: Do I need to add headers to sources? [skip ci] 2019-07-10 01:00:42 +03:00
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