summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
Commit message (Collapse)AuthorAgeFilesLines
* add Compiler.thread_flags() stubAlexey Stukalov2017-12-301-0/+3
| | | | fixes #2834
* compilers: prefer C++ over objc in clink_langsNirbheek Chauhan2017-12-301-1/+1
| | | | | | | | | | | Otherwise we will try to use the objc compiler when linking projects with both objc and C++. Technically we should use the objc++ linker when doing this, but on most (all?) systems the objc++ linker is `c++`, which is the same as the C++ linker. Closes https://github.com/mesonbuild/meson/issues/2468
* Add whitespace around '+'.Benjamin Redelings2017-12-231-1/+1
|
* Fix linking with clang++ on linux if install_rpath.Benjamin Redelings2017-12-231-1/+6
|
* Merge pull request #2791 from behlec/compiler-versionJussi Pakkanen2017-12-206-45/+49
|\ | | | | Add more version information to compiler
| * Fix: More information for C compilers.Christoph Behle2017-12-191-2/+2
| | | | | | | | Add full version to gnu and icc C compiler.
| * More version information for Fortran.Christoph Behle2017-12-161-18/+18
| |
| * More version information for DChristoph Behle2017-12-161-8/+8
| |
| * More version information for C#Christoph Behle2017-12-161-2/+2
| |
| * More version information for compilers.Christoph Behle2017-12-163-15/+19
| | | | | | | | | | | | | | | | See issue #2762 Adds full_version to class Compiler. If set full_version will be printed additionally. Added support for CCompiler and CPPCompiler Added support for gcc/g++, clang/clang++, icc.
* | Use -MD instead of -MMD for reliability.Jussi Pakkanen2017-12-182-2/+2
| |
* | Allow value 'if-release' for b_ndebug project option. (#1896)Hemmo Nieminen2017-12-171-4/+3
| | | | | | | | | | When set, NDEBUG will be automatically defined for for release builds but not for other build types.
* | Use LC_ALL=C in CCompiler.get_library_dirsIsmael GonzĂĄlez2017-12-131-1/+3
|/ | | | | Use LC_ALL=C in CCompiler.get_library_dirs to fix wrong results with non English locales.
* Fix Vala thread flag breakage (#2756)Ernestas Kulik2017-12-111-2/+2
|
* haiku: do not add pthread argumentsDylan Baker2017-12-071-8/+14
| | | | | Haiku has pthreads, but they are part of the standard C library, and do not need either special compiler or linker flags.
* Renamed UserStringArrayOption to UserArrayOption for short.Jussi Pakkanen2017-12-072-9/+9
|
* Add C++17 flags to GCC and Clang.Jussi Pakkanen2017-12-061-4/+4
|
* find_library: Prefer .dll.a and .lib over .dll for sharedNirbheek Chauhan2017-12-031-1/+3
| | | | | | | | | | | | | We can't know if the .lib is a static or import library, but that's a problem in general too. The only way to figure out if a specific file is an import or a static library is to dump its symbols and check if it starts with __imp or not. Even then, some libs are hybrid import and static, i.e., they contain references to DLLs for some symbols and also provide implementations for other symbols so this is a difficult problem. Closes https://github.com/mesonbuild/meson/issues/2659
* Merge pull request #2618 from mesonbuild/osxlinkerfixesJussi Pakkanen2017-12-032-1/+24
|\ | | | | Fix many things have have been slightly broken in OSX
| * Use absolute paths for rpaths on OSX.Jussi Pakkanen2017-11-262-1/+17
| |
| * Add headerpad linker argument on OSX.Jussi Pakkanen2017-11-261-0/+7
| |
* | vala: add stubs for thread flag methodsErnestas Kulik2017-12-031-0/+6
| | | | | | | | | | | | | | | | As the Vala compiler does not define thread_flags() and thread_link_flags(), depending on threads in any capacity will cause Meson to fail. Fixes #2720.
* | adding C++98 to versions that meson can supportSolomon Choina2017-11-291-2/+2
| |
* | spelling: overriddenJosh Soref2017-11-261-2/+2
| |
* | spelling: occurrenceJosh Soref2017-11-261-6/+6
|/
* Merge pull request #2611 from mesonbuild/nirbheek/pkgconfig-msvc-staticJussi Pakkanen2017-11-151-10/+49
|\ | | | | Several fixes to pkg-config dependencies and the pkg-config module (try 3)
| * compilers: Improve manual library searchingNirbheek Chauhan2017-11-111-10/+49
| | | | | | | | | | | | We can now specify the library type we want to search for, and whether we want to prefer static libraries over shared ones or the other way around. This functionality is not exposed to build files yet.
* | Fix #2620rkfg2017-11-141-1/+3
|/
* 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