summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
Commit message (Collapse)AuthorAgeFilesLines
* Better check for when address sanitizer is enabled. Closes #2590.Jussi Pakkanen2017-11-091-1/+1
|
* Warn when no inc dir is found from parsing GNU compiler outputAlexis Jeandet2017-11-021-1/+4
| | | | Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
* Fix detection of include dirs with gnu compiler and non C localeAlexis Jeandet2017-11-011-1/+4
| | | | | | | Auto detection was based on parsing gcc's output so we have to ensure that it is always 'C'. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
* C/C++: Get default include dirs from compilersNiklas Claesson2017-10-012-0/+47
|
* VisualC: Add support for msvc toolset versionNiklas Claesson2017-10-011-0/+26
|
* Linker flag for Windows GUI applications was missing on MSVC.Jussi Pakkanen2017-09-261-0/+3
|
* Merge pull request #2187 from centricular/fix-pcap-dependencyJussi Pakkanen2017-09-221-0/+28
|\ | | | | Fix pcap dependency, str.strip() now takes an argument, add cc.get_return_value()
| * Add a new compiler method: get_return_value()Nirbheek Chauhan2017-09-201-0/+28
| | | | | | | | | | | | | | | | | | This method accepts a single function that takes no arguments and returns a single value which can be a value that can be cast to a 64-bit signed integer, or a string, and returns that value. Mostly useful for running foolib_version() functions that return the currently-available version of libraries.
* | flake8: Perform suggested whitespace/formatting changesLuke Shumaker2017-09-212-3/+1
| | | | | | | | | | This only touches newlines, spaces, and (occaisionally) commas. Anything else is left for another commit.
* | Last round with listify function refactoring.Alexis Jeandet2017-09-181-3/+2
| | | | | | | | Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
* | d: Implement specific properties for D featuresMatthias Klumpp2017-09-121-1/+1
| |
* | d: Add easy way to use D-specific featuresMatthias Klumpp2017-09-121-5/+50
|/ | | | | | | | | Of course D compilers have different flags to set some important D-specific settings. This adds a simple method to change these flags in a compiler-agnostic way in Meson. This replaces the previous `unittest_args` method with a more generic variant.
* Add Compiler.get_supported_arguments()Daniel Stone2017-08-311-0/+7
| | | | | | | | | | | | | Add a helper for the common pattern of: args_to_use = [] foreach arg : candidate_args if cc.has_argument(arg) args_to_use += arg endif endforeach Replaced with: args_to_use = cc.get_supported_arguments(candidate_args)
* Fix detection of clang "optimization arguments"Peter Harris2017-08-181-1/+4
| | | | | | | | | In version 3.6.0, clang added -Wignored-optimization-argument. Without setting this flag to -Werror, "ignored optimization arguments" such as (for example) -fpeel-loops, are accepted but warned about, leading to noisy builds if meson thinks the flag is supported. See also #755
* gfortran: Add coverage argumentsNirbheek Chauhan2017-08-151-0/+6
|
* Pass -fpch-preprocess to GCC when precompiled headers are usedGabrĂ­el ArthĂșr PĂ©tursson2017-08-132-0/+8
| | | | | | | | | | | | CCache requires this flag when building with precompiled headers. Without it, the preprocessor fails and CCache fallbacks to running the real compiler. Users still need to set 'sloppiness' to 'pch_defines,time_macros' in their ccache.conf file for CCache to cache builds that use precompiled headers. See the CCache manual for more info: https://ccache.samba.org/manual.html#_precompiled_headers
* Add info on module include flag for Fortran compilers.Elliott Sales de Andrade2017-08-041-0/+9
|
* A few more lgtm fixes.Jussi Pakkanen2017-08-041-1/+0
|
* Add thread flags to checks if needed. Closes #2106.Jussi Pakkanen2017-08-011-0/+4
|
* Vala: enable colored warning and error output (#2142)Ben2017-08-011-1/+7
|
* find_library: Ignore libs on MSVC properlyNirbheek Chauhan2017-07-232-5/+10
| | | | | | | | In addition to filtering libs out while generating the command-line, we must also filter them out in find_library() otherwise these libs will be detected as "found" on Windows with MSVC. Closes https://github.com/mesonbuild/meson/issues/1509
* CompilerArgs: Put start/end-group around shared libs tooNirbheek Chauhan2017-07-231-8/+15
| | | | Closes https://github.com/mesonbuild/meson/issues/2096
* Merged buildrpath branch.Jussi Pakkanen2017-07-217-14/+19
|\
| * Add build_rpath as new property allowing people to specify rpath entries ↔Jussi Pakkanen2017-07-217-14/+19
| | | | | | | | that are used in the build tree but will be removed on install.
* | Fix linking Objective-C shared libs on OSX.Alessandro Decina2017-07-211-2/+0
|/ | | | | | | | | | | This commit amends 04a2e6de making linker.get_std_shared_lib_link_args() always return -shared for SharedLibrary(es) instead of -bundle. SharedModule(s) get linked with linker.get_std_shared_module_link_args() which already correctly returns -bundle. Before this change -bundle and -install_name ended up being emitted for Objective-C shared libraries, which caused a linking error.
* Renamed test case number to avoid dupes.Jussi Pakkanen2017-07-171-0/+2
|
* Fix checks on MinGW and VS2010.Jussi Pakkanen2017-07-172-2/+7
|
* Added VS support to simd detector.Jussi Pakkanen2017-07-173-3/+35
|
* Fix a few OSX "features".Jussi Pakkanen2017-07-171-1/+1
|
* Created simd module.Jussi Pakkanen2017-07-171-0/+26
|
* Fix typoChocobo12017-07-161-1/+1
| | | | profile guide optimization -> profile guided optimization
* Fix how rpath directories are handled.Hemmo Nieminen2017-07-151-5/+1
| | | | | Linking a library from a directory below the executable's directory caused an invalid path to be written in the executable's RPATH.
* Allow both address- and undefined behavior sanitizers at the same timeGabrĂ­el ArthĂșr PĂ©tursson2017-07-151-1/+1
|
* Fix a missing path issue causing Python traceback.Hemmo Nieminen2017-06-291-0/+4
| | | | | A path was missing from a call to os.path.relpath when handling rpaths. Fix this by assuming empty target directory means build root.
* Merged Genie support.Jussi Pakkanen2017-06-271-1/+1
|\
| * Recognise .gs extension as a Vala sourceAlistair Thomas2017-06-261-1/+1
| |
* | Use 'C sharp' instead of 'C#'Guillaume Poirier-Morency2017-06-261-1/+1
| | | | | | | | The '#' is reserved for Ninja comments and cannot be escaped.
* | compilers: Use 'get_display_language' for language-related exceptionsGuillaume Poirier-Morency2017-06-261-11/+11
| |
* | Add 'Compiler.get_display_language'Guillaume Poirier-Morency2017-06-266-1/+16
|/ | | | | Use this when we print language-related information to the console and via the Ninja backend.
* Split out languages from compilers.pyAlistair Thomas2017-06-2313-2156/+2568
|
* Converted compilers.py to a sub-packageAlistair Thomas2017-06-222-0/+3228