Jon Turney
f9c03dfd29
ninja: Only use response files when needed
...
Writing rsp files on Windows is moderately expensive, so only use them
when the command line is long enough to need them.
This also makes the output of 'ninja -v' useful more often (something
like 'cl @exec@exe/main.c.obj.rsp' is not very useful if you don't have
the response file to look at)
For a rule where using a rspfile is possible, write rspfile and
non-rspfile versions of that rule. Choose which one to use for each
build statement, depending on the anticpated length of the command line.
5 years ago
Jon Turney
50f98f3726
ninja: Rename 'rule' -> 'rulename' in NinjaBuildElement
...
Rename 'rule' to 'rulename' in the NinjaBuildElement class, we're going
to want a reference to the NinjaRule object as well.
5 years ago
Jon Turney
702d03e426
Add a test case for very long command lines
...
This exercises commands of about 20K in length
Also test short commandlines to make sure they don't regress.
5 years ago
Daniel Mensinger
0e98a7679a
cmake: Skip MSVC like compilers, since C++11 is not supported
5 years ago
Daniel Mensinger
ede2cd556c
cmake: added docs
5 years ago
Daniel Mensinger
08e838a235
cmake: added test case
5 years ago
Daniel Mensinger
a2f94ca18b
cmake: Add more advanced subproject configuration options
...
This is done with the new cmake subprojects options object
that is similar to the already exisiting configuration data
object. It is consumed by the new `options` kwarg of the
cmake.subproject function.
5 years ago
Marcel Hollerbach
032ab3606d
CompilerArgs: refactor __iadd__
...
the previous optimizations from 4524088d38
were not relaly good, and not really scaleable, since only the lookup
was improved. However, the really heavy calls to remove have not been
improved.
With this commit we are refactoring CompilerArgs into a data structure
which does not use remove at all. This works that we are building a pre
and post list, which gets flushed into __container at some point.
However, we build pre and post by deduplicating forward. Later on, when
we are flushing pre and post into __container, we are deduplicating
backwards the list, so we are not changing behaviour here.
This overall cuts off 10s of the efl configuration time. Further more
this improves configure times on arm devices a lot more, since remove
does seem to be a lot slower there. In general this results in the fact
that __iadd__ is not within the top 5 of costly functions in
generate_single_complie.
5 years ago
Marcel Hollerbach
ba8e838dcf
Revert "CompilerArgs: make lookup faster"
...
This was a not so nice solution, and should be replaced with something
better.
This reverts commit 4524088d38
.
5 years ago
Marcel Hollerbach
256e910dee
cache up regex mathings
...
the names passed in here are often the same. We should ensure that we
cache the regex match, as this will speed up our runtime a lot.
5 years ago
Marcel Hollerbach
cca06e4c33
ninjabackend: cache calls to normpaths
...
calls to normpaths are expansive. We should cache the results. This
safes 2s in the configure time of efl.
5 years ago
Richard Brown
2e30afb23b
Add libeconf to users.md
...
libeconf is now using meson as its primary/default build system, so we'd like to see ourselves on the meson users list .
5 years ago
Joshua Gawley
6d2255ffec
mesonlib.py: refactored detect_vcs() to use pathlib.Path ( #7230 )
5 years ago
Jussi Pakkanen
f818d961e4
Add android to os list informally. Closes #6233 . [skip ci]
5 years ago
Lisa White
5e3f9b4b06
[skip ci] mesonwrap docs: fix a broken link
5 years ago
Mike Gilbert
5b3bed525d
Ignore file access errors when scanning .so files in system libdirs
...
Bug: https://bugs.gentoo.org/726524
5 years ago
Daniel Mensinger
a252a17e6e
cmake: always split property lists ( fixes #7228 )
5 years ago
jonathanmist
9ada7e18a8
dependencies/cuda: Add support for ARM linux
5 years ago
Ebrahim Byagowi
647f19b5aa
docs/unit-tests: Show a test can have multiple suites [skip ci]
5 years ago
Lisa White
fcbff1de7c
[skip ci] mesonwrap docs
...
- Add ambiguous naming documentation.
- Update branch request documentation.
- Add mesonwrap token documentation.
- Update review guidelines.
5 years ago
Lisa White
6ecb716f9c
[skip ci] mesonwrap docs: limit line length and remove trailing spaces
5 years ago
Jussi Pakkanen
c61f75adbf
Merge pull request #6818 from mensinda/localPatch
...
Wrap: add local files support via *_filename
5 years ago
Michael Hirsch, Ph.D
e2c475939e
add type anno: compilers/clike
5 years ago
Daniel Mensinger
a340b413ef
ninja: Always use to_native on CompilerArgs ( fixes #7167 )
5 years ago
Soapux
4852ee8ceb
Fix lack of space after 'Cflags:' in pkgconfig files
5 years ago
Phillip Johnston
bdfd46e579
Recognize Arduino .ino files as C++
...
Renaming .ino files is not an option when working with the IDE. Meson should recognize it as C++ however.
5 years ago
Soapux
228fd24ca4
docs: Fix typo in Release notes [skip ci]
5 years ago
Daniel Mensinger
c9cd235af4
opts: added docs
5 years ago
Daniel Mensinger
534b340a56
opts: Add FeatureNew for '-' and 'not' introduced in 0.54.1
5 years ago
Daniel Mensinger
7e8f1de063
opts: Allow string concatenation ( fixes #7199 )
5 years ago
TheQwertiest
1d02fd924b
mcompile: removed unneeded imports
5 years ago
TheQwertiest
4b6471f1d5
mcompile: detect_ninja
5 years ago
TheQwertiest
7c2f9e2b57
mcompile: replaced intro with cdata + extracted code to funcs
5 years ago
TheQwertiest
b9c9024e84
mcompile: replaced backend divination code + cleanup
5 years ago
Jussi Pakkanen
1e7f1ad4c9
Merge pull request #7197 from jon-turney/test-output-check-mandatory
...
Make the expected output check mandatory for failing-meson and warning-meson tests
5 years ago
georgev93
6f199db95b
Use --internal script call to call delwithsuffix when cleaning up the gcno and gcda files in a coverage enabled build. Otherwise, meson will crash when running from an MSI installation.
5 years ago
p01arst0rm
91db25ac85
fixed typo
5 years ago
Alexander Neumann
ec7ee8fd9e
fix cmake target configuration selection.
5 years ago
Jussi Pakkanen
187865c5a8
Merge pull request #6765 from mensinda/astDump2
...
mintro: AST JSON printer
5 years ago
Jussi Pakkanen
527536dd4a
Clear internal caches before running each test.
5 years ago
Jon Turney
6b1e1ffa77
Add expected stdout for failing-meson tests which are missing it
5 years ago
Jon Turney
0ac4376990
Make expected stdout mandatory for warning-meson and failing-meson tests
...
Unify present or absent test.json file cases in gather_tests
Make expected stdout mandatory in test.json for some test categories
Use a trivial TestCategory class rather than a tuple, to make it easier
to default category attributes
5 years ago
Daniel Mensinger
550a450324
ast: Add docs for --ast
5 years ago
Daniel Mensinger
210b57a136
ast: add unittest
5 years ago
Daniel Mensinger
54511b4a0f
ast: Handle NotNode
5 years ago
Daniel Mensinger
96eeef62ea
ast: Add AST JSON printer
5 years ago
Jussi Pakkanen
f2e2e910d9
Remove stray print call.
5 years ago
Jussi Pakkanen
22bc0d46a5
Revert "Merge pull request #7172 from jon-turney/test-output-check-mandatory"
...
This reverts commit 0871b1032c
, reversing
changes made to 9dc3ca2c1c
.
5 years ago
Drew Reed
9a94ffe061
Modifed buildtypes and armclang compiler flags to match documented results
5 years ago
georgev93
eee117aa24
Allow building with b_coverage set to true when clang is being used regardless of linker selection.
5 years ago