Commit Graph

7394 Commits

Author SHA1 Message Date
Nirbheek Chauhan bcee8fb8ca compilers: Update comment about library search patterns 2019-03-14 12:21:05 +00:00
Nirbheek Chauhan 07818dac6a compilers: Try harder to dedup builtin libs
Compiler internal libs should always be de-duplicated, no matter what.

Closes https://github.com/mesonbuild/meson/issues/2150

Test case is by Bruce Richardson in the issue.
2019-03-14 12:21:05 +00:00
Michael Hirsch, Ph.D e491792a95
docs 2019-03-14 02:04:25 -04:00
Michael Hirsch, Ph.D 972857fc1d
add fortran include test case 2019-03-14 01:54:22 -04:00
Michael Hirsch, Ph.D 6d215476c0
functionalize per-file Fortran dep scan
allow recursion for Fortran include

qualify include by file extension

correct suffix
2019-03-14 01:43:25 -04:00
Georges Basile Stavracas Neto 5f00c30200 i18n: Use CustomTarget.known_kwargs at permittedKwargs()
@permittedKwargs() is basically copying the logic of CustomTarget,
but it is not actually up to date, leading to warnings on perfectly
valid values such as 'build_by_default'.

Use CustomTarget.known_kwargs instead, and only append the specific
kwargs of i18n.merge_file().

Fixes https://github.com/mesonbuild/meson/issues/5079
2019-03-14 05:14:29 +00:00
Dylan Baker e7c4601fe3 tests: disable Dlang tests on windows
These don't work and no one has fixed them. When I've tried to
download dmd for windows I can't get a valid installer from their
website. Let's at least turn the CI green.
2019-03-13 23:18:09 +02:00
Tomas Krizek 4adadadb91 docs/Users: add Knot Resolver to projects 2019-03-13 12:51:17 -07:00
Tomas Krizek 9641a3d289 docs/Users: fix sort order (Kiwix libraries) 2019-03-13 12:51:17 -07:00
Bruce Richardson cfe82db5ab do not duplicate external dependencies in list
Since the "-l<lib>" flags in the build.ninja file are passed in
"--start-group"/"--end-group" flags, there should be no need to have any
library listed twice, even if there are circular dependencies. Therefore we
can eliminate duplicates. For speed, rather than deduplicating at the end
of the process, it's faster to not add the duplicate flags in the first
place.

This should help fix #2150
2019-03-13 11:54:39 +00:00
Antoine Jacoutot 5d3e20984d compilers: -fsanitize is not supported on OpenBSD (second pass)
Similar to https://github.com/mesonbuild/meson/pull/5067
This part was missed in my previous commit.
2019-03-13 08:57:46 +00:00
Antoine Jacoutot f7af1a6285 compilers: -fsanitize is not supported on OpenBSD
OpenBSD doesn't have any support for the compiler sanitizers yet.
While this may change in the future, better fix test suite run in "failfast"
mode for now. This can be revisited once (if) we get support in the future.

* clang 7.0.1
$ make CFLAGS=-fsanitize=address foo
cc -fsanitize=address   -o foo foo.c
cc: error: unsupported option '-fsanitize=address' for target 'amd64-unknown-openbsd6.5'

* gcc 4.2.1
*** Error 1 in /tmp (<sys.mk>:85 'foo')
$ make CC=gcc CFLAGS=-fsanitize=address foo
gcc -fsanitize=address   -o foo foo.c
cc1: error: unrecognized command line option "-fsanitize=address"

* gcc 8.2.0
$ make CC=egcc CFLAGS=-fsanitize=address foo
egcc -fsanitize=address   -o foo foo.c
ld: error: unable to find library -lasan
collect2: error: ld returned 1 exit status
2019-03-13 06:35:58 +00:00
John Ericson 9409155d5a Avoid module patching in `test_find_library_patterns`
This is less hacky, and also prepares the way for #4010.
2019-03-12 04:03:47 +00:00
Dylan Baker 89e46f0d92 build: Handle EOFError and AttributeError like coredata
Fixes #5056
2019-03-12 03:54:41 +00:00
Niklas Claesson dd2c44cdf6 Add static as keyword to find_library 2019-03-11 20:56:52 +02:00
Andrei Alexeyev faf3581df6 Fix git wraps with submodules
* If clone-recursive is specified, populate submodules only after
    the specified revision/branch has been checked out. Fixes #4996

    * Update submodules recursively on `meson subprojects update`
2019-03-11 20:31:52 +02:00
jrl64 969e291835 A more verbose RE Definiton in search_version. Closes #5020 2019-03-11 20:29:30 +02:00
Ignacio Casal Quinteiro c6f84a223c Add unit test for pkgconfig relative paths 2019-03-11 17:38:22 +00:00
Nirbheek Chauhan ca34b0af70 Support relative paths in pkgconfig files
This is a regression introduced in meson 0.47.

Fixes https://github.com/mesonbuild/meson/issues/4135
2019-03-11 17:38:22 +00:00
Nirbheek Chauhan a0be869bb9
docs: Typos and formatting in the 0.50 release notes [skip ci] 2019-03-11 21:35:46 +05:30
Antoine Jacoutot 85ca6adfb4 test: fix "get define" on OpenBSD
Same as with NetBSD, OpenBSD doesn't provide a ZLIB_VER_MAJOR but has
ZLIB_VERSION instead.
2019-03-11 15:51:29 +00:00
Thomas DeRensis 86a7d67179 docs: Add missing closing quote [skip ci] 2019-03-11 15:18:31 +00:00
Antoine Jacoutot 28b54c1b66 Fix indent to please codestyle. 2019-03-11 11:38:31 +00:00
Antoine Jacoutot d952e5ac4d GnuLikeCompiler: don't set b_lundef by default on OpenBSD
OpenBSD does not link libc into shared libraries by default to avoid binding
libraries to specific libc majors. So prevent passing "-Wl,--no-undefined" or
"-zdefs" when linking (those options have always suffered false positives on
this operating system).
2019-03-11 11:38:31 +00:00
Antoine Jacoutot 7bc04996c0 environment: support OpenBSD in detect_objc_compiler
We need to match the "clang --version" output on OpenBSD:
$ clang --version | head -1
OpenBSD clang version 7.0.1 (tags/RELEASE_701/final) (based on LLVM 7.0.1)
2019-03-11 11:37:02 +00:00
Antoine Jacoutot c1c699eda4 Fix unit test: test_find_library_patterns 2019-03-11 06:02:17 +00:00
Antoine Jacoutot 03c0c3a8f4 Fix _get_patterns on OpenBSD
We need to account to the possible prefixes (empty or 'lib').
This allows both to work:
cc.find_library('foo')
cc.find_library('libfoo')
2019-03-11 06:02:17 +00:00
Will Thompson ca355a79fb docs: fix typo in link anchor [skip ci] 2019-03-10 20:01:43 +00:00
Jussi Pakkanen 35c3cf2822 Bump version number for new development. 2019-03-10 20:40:31 +02:00
Jussi Pakkanen 9f48f5fe94 Update everything for new release. 2019-03-10 19:25:09 +02:00
Amit D 2bec1633fc Update Users.md [skip ci] 2019-03-10 18:46:31 +02:00
Jussi Pakkanen 5a4defadab Generate release notes from snippets automatically. [skip ci] 2019-03-10 18:40:27 +02:00
Jussi Pakkanen 7589471978 Condense directory numbering for release. 2019-03-10 18:39:03 +02:00
Jussi Pakkanen c34f044814 Fix appleframeworks with multiple modules. 2019-03-10 15:13:21 +02:00
Thibault Saunier c6012e3cc7 hotdoc: Set gi-c-source-root
The same way as we set '--sources-top-dirs' for gi
2019-03-10 14:09:50 +02:00
Eli Schwartz 311cbf347b pkgconfig.generate: add FeatureNew and documentation for implict version
The documentation for this change was left out of its implementation in
commit b4aee4675a and was later documented
in commit f831c05b55 as if it had always
existed.
2019-03-09 19:39:51 +02:00
Dylan Baker e42e19702c docs: Add snippet for python module path method [skip ci]
Which somehow wasn't included in the original pull request.
2019-03-09 19:01:57 +02:00
Dylan Baker bd6bae0c71 docs: document that the .path() method for Python is new in 0.50 [skip ci]
Since this method was not included in 0.46-00.49 we should document that.
2019-03-09 19:01:57 +02:00
Eric Engestrom b5cc01ccd9 bash/zsh: drop completion for deprecated command 2019-03-08 01:59:36 +02:00
Dylan Baker cb614e8ff6 llvm: Add llvm-config80 for FreeBSD 2019-03-07 11:14:05 +02:00
Amit D 068217a385 Update Users.md [skip ci] 2019-03-06 22:42:14 +02:00
Jussi Pakkanen 38a3c30bc5 Fix javac version lookup in JDK11. Closes #4322. 2019-03-05 11:25:21 +02:00
Jussi Pakkanen ee863d33c1
Merge pull request #2601 from 1ace/feature/completion
Add completion scripts for Bash and Zsh
2019-03-04 18:40:13 +02:00
Jussi Pakkanen 94bb29738e
Merge pull request #4992 from mensinda/rwCLI
rewriter: Add a CLI and docs
2019-03-04 17:49:32 +02:00
Daniel Mensinger 17ce9bc0e5 docs: Define sorting in Style-guide.md [skip ci] 2019-03-04 17:49:02 +02:00
Daniel Mensinger 91918262e7
rewriter: Fixed unit tests 2019-03-04 13:14:48 +01:00
Daniel Mensinger 0a84bbcf4c
rewriter: Fixed test case 2019-03-04 13:00:31 +01:00
Daniel Mensinger 5f6b94ccb9
rewriter: Renamed _src -> _sources 2019-03-04 13:00:31 +01:00
Daniel Mensinger 617445ea72
rewriter: Make sure variable names are valid 2019-03-04 13:00:31 +01:00
Daniel Mensinger 594bf678c7
rewriter: Require '/' for the project ID 2019-03-04 13:00:30 +01:00