summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* compilers: Fix exception handling in compiler checksnirbheek/fix-contextmanager-tracebackNirbheek Chauhan2018-11-281-43/+45
| | | | | | | | | | | Not yielding anything from a context manager because an exception was raised causes the interpreter to output an undebuggable 'RuntimeError: generator didn't yield' exception. Wrapping the entire compiler check in a `try: except: pass` is anyway incorrect because we only want to ignore exceptions in cleaning up the temporary directory, so reorganise the code and correctly ignore exceptions only for that.
* docs: Remove mention of appveyor from Contributing docJon Turney2018-11-281-10/+9
| | | | | | Add mention of azure Also fix anchor in travis URL Also make 'see below' into a link
* appveyor: Remove vs2015 jobsJon Turney2018-11-281-119/+0
| | | | Remove vs2015 jobs, migrated to azure
* Use /O1 instead of /Os for MSVC as the latter is deprecated.Jussi Pakkanen2018-11-281-2/+3
|
* azure-pipelines: install cmake in msys2Christoph Reiter2018-11-271-1/+9
| | | | Recent test changes depend on cmake being available.
* azure: ignore PRs which should be skipped for ciJon Turney2018-11-271-1/+1
| | | | | azure doesn't support [skip ci], so do nothing, rather than failing when we detect a PR which should have [skip ci], but didn't get skipped.
* Merge pull request #4191 from trilader/feature/projectinfo-from-sourceJussi Pakkanen2018-11-275-32/+210
|\ | | | | mintro: Allow introspect --projectinfo without build directory
| * Remove name property from introspect --projectinfo as it is not usedDaniel Schulte2018-11-262-6/+2
| |
| * mintro: Allow introspect --projectinfo without build directory.Daniel Schulte2018-11-263-2/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This variant was added to allow introspection before configuring a build directory. This is useful for IDE integration to allow displaying and/or setting options for the initial configuration of the build directory. It also allows showing basic information about the project even if it's not yet configured or configuring failed. The project 'name' field in --projectinfo is used inconsistently: For the top level project it always shows the name configured in the top level meson.build file. For subprojects it's referring to the name of the directory the subproject's meson.build is contained in. To have a consistent output and preserve the existing behavior this adds the 'descriptive_name' field which always shows the name set in the project. To be consistent the 'descriptive_name' field was also added to the --projectfiles variant that uses an already configured build. It also extends the information shown with the list of buildsystem-files. This is currently only implemented in the variant for unconfigured projects.
| * AstInterpreter: Stub out more functionsDaniel Schulte2018-11-261-2/+25
| | | | | | | | | | This commit disables more functions inherited from InterpreterBase that we don't need for AST evaluation.
| * mintro: Split list_buildsystem_files into generation and command functionDaniel Schulte2018-11-261-2/+6
| |
| * Split AstInterpreter into base class and RewriterInterpreterDaniel Schulte2018-11-262-27/+44
| |
* | Remove linkerlike args from compile checks. Closes #4542.Jussi Pakkanen2018-11-272-1/+10
| |
* | Fixed unit test (see #4549)Daniel Mensinger2018-11-272-17/+20
|/
* Fixed unbound cmvers variable (#4549)Daniel Mensinger2018-11-261-0/+1
|
* Merge pull request #4546 from mensinda/buildoptsJussi Pakkanen2018-11-265-17/+95
|\ | | | | Added 'section' key to buildoptions introspection
| * Updated docs [skip ci]Daniel Mensinger2018-11-242-0/+50
| |
| * Sorted arrays alphabeticallyDaniel Mensinger2018-11-242-22/+22
| |
| * Added 'section' key to buildoptions introspectionDaniel Mensinger2018-11-242-6/+34
| |
* | CI: port msys2 jobs from appveyor to azure-pipelinesChristoph Reiter2018-11-262-15/+50
|/
* Use first 7 letters of sha256 for subdirectory part of target idAleksey Filippov2018-11-222-11/+47
| | | | | | | | | | | Fixed-size hash makes paths shorter and prevents doubling of path length because of subdir usage in target id: "subdir/id" would generate "subdir/{subdir-without-slashes}@@id" target otherwise. Export construct_id_from_path() to aid tests. Add a separate unit test for this function to make sure it is not broken unexpectedly. Closes #4226.
* dependencies/ui: Fix qt compiler detection when bindir is setDylan Baker2018-11-221-1/+3
| | | | Fixes: #4527
* Fix subproject initialization without git installed.Elliott Sales de Andrade2018-11-221-2/+5
|
* [skip ci] Document CFLAGS and friends in main docsFloris Bruynooghe2018-11-222-0/+29
| | | | | | Currently this is only partially documented in the quick-start guide, include this in the main docs and document all the environment argumens used.
* Remove MinimalRebuild as it is deprecated. Closes #4539.Jussi Pakkanen2018-11-221-1/+0
|
* CMake find_package dependency backend (#4444)Daniel Mensinger2018-11-2213-17/+861
|
* docs: Alphabetically sort reference table rows [skip ci]Jon Turney2018-11-221-31/+31
|
* docs: Add clang-cl to reference table for compiler get_id() values [skip ci]Jon Turney2018-11-221-0/+1
|
* pkgconfig: add support for pkgconfig generation for c#Marcel Hollerbach2018-11-214-5/+45
| | | | | | | | | | | | | this adds support for generating pkgconfig files for c#. The difference to c and cpp is that the -I flag is not known to the c# compiler, but rather the -r flag which is used to link a .dll file into the compiled library. However this opens the question of validating which pkgconfig files can be generated (depending on the language). This implements 4409.
* CI: port cygwin job from appveyor to azure-pipelinesChristoph Reiter2018-11-214-38/+49
|
* minstall: Do not delete dst files when installing a directoryXavier Claessens2018-11-201-3/+1
| | | | | | | do_copyfile() already takes the decision to delete or preserve them. Also do not append a confusing '.' in log messages that finish by a file path.
* docs: Add missing `namespace` parameter documentation [skip ci]Iñigo Martínez2018-11-201-0/+1
| | | | | | Although the `namespace` parameter was implemented in 0.37, its documentation is still missing. It has been added to the `gtkdoc`'s documentation.
* -Wl,--as-needed seems to break easily with mpi/fortranAlexis Jeandet2018-11-191-1/+1
| | | | | | While this isn't solved everywhere, this seems reasonable to disable it. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
* Fix flake8 whitespace reportsJon Turney2018-11-191-1/+1
| | | | | | | | $ flake8 ./mesonbuild/mtest.py:524:9: E122 continuation line missing indentation or outdented per PEP8, this line requires more indentation to distinguish it from the following line
* Fix flake8 'imported but unused' reportsJon Turney2018-11-193-3/+1
| | | | | | | $ flake8 | grep F401 ./run_unittests.py:43:1: F401 'mesonbuild.mesonlib.is_linux' imported but unused ./mesonbuild/compilers/c.py:32:1: F401 '.compilers.CompilerType' imported but unused ./mesonbuild/compilers/cpp.py:23:1: F401 '.compilers.CompilerType' imported but unused
* lgtm: Instantiating an exception, but not raising itJon Turney2018-11-191-1/+1
| | | | | Instantiating an exception, but not raising it, has no effect This alert was introduced in 92487ea 10 months ago
* lgtm: Too few arguments for string format.Jon Turney2018-11-191-1/+1
| | | | | | | Too few arguments for string format. Format "{0} sources specified and couldn't find {1}, please check your qt{2} installation" requires at least 3, but 2 are provided. This alert was introduced in f7f439c a year ago
* gnome.gtkdoc: Fix missing permitted `c_args` argumentIñigo Martínez2018-11-191-1/+2
| | | | | | | | Although `gtkdoc` function has support for `c_args` argument[0], it produces warning messages due to missing string in the permitted arguments list. [0] https://github.com/mesonbuild/meson/pull/4192
* Merge pull request #4359 from dcbaker/icc-fixesDylan Baker2018-11-178-48/+124
|\ | | | | ICC fixes for Linux and MacOS
| * compilers: quiet ICC messages about pchDylan Baker2018-11-151-1/+1
| | | | | | | | | | These are useful for debugging, but not interesting for end users, where it just adds lines between ninja jobs without adding value.
| * tests: Fix fortran + cpp test for ifortDylan Baker2018-11-151-1/+12
| | | | | | | | | | To make ifort like rand we need to link with ifport, or we don't get rand.
| * compilers/fortran: pass -module ${path} instead of -module${path}Dylan Baker2018-11-151-1/+1
| | | | | | | | | | ifort doesn't like the latter, and gfortran seems happy with the former. I don't have any of the other supported fortran compilers to test with.
| * ifort: ifort needs to have -lifcore like gfotran needs -lgfortranDylan Baker2018-11-151-0/+3
| |
| * compilers: Move get_allow_undefined_link_args to CompilerDylan Baker2018-11-153-29/+20
| | | | | | | | | | | | | | This allows each implementation (gnu-like) and msvc to be implemented in their respective classes rather than through an if tree in the CCompiler class. This is cleaner abstraction and allows us to clean up the Fortran compiler, which was calling CCompiler bound methods without an instance.
| * compilers: ICC should error when an unknown __attribute__ is testedDylan Baker2018-11-151-0/+1
| |
| * compilers: Set the correct values for undefined modules on apple with iccDylan Baker2018-11-151-1/+5
| |
| * compilers: Add ICC setting for get_allow_undefined_link_argsDylan Baker2018-11-151-0/+2
| |
| * compilers: Enable PGO for ICCDylan Baker2018-11-151-5/+24
| | | | | | | | | | | | | | | | ICC doesn't use the same -fprofile-generate/-fprofile-use that GCC and Clang use, instead it has -prof-gen and -prof-use. I've gone ahead and added the threadsafe option to -prof-gen, as meson currently doesn't have a way to specify that level of granularity and GCC and Clang's profiles are threadsafe.
| * fortran: ifort doesn't have -pipeDylan Baker2018-11-151-0/+6
| |
| * compilers: fix compiler.compile for Intel CompilersDylan Baker2018-11-152-8/+19
| | | | | | | | | | has_arguments is the wrong thing to fix, since all checks that require compiler options are based on compiles, it's the right thing to modify.