summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2791 from behlec/compiler-versionJussi Pakkanen2017-12-201-8/+8
|\ | | | | 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 compilers.Christoph Behle2017-12-161-6/+6
| | | | | | | | | | | | | | | | 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-181-1/+1
| |
* | 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.
* 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-071-5/+5
|
* 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
* Use absolute paths for rpaths on OSX.Jussi Pakkanen2017-11-261-0/+2
|
* Add headerpad linker argument on OSX.Jussi Pakkanen2017-11-261-0/+7
|
* 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.
* C/C++: Get default include dirs from compilersNiklas Claesson2017-10-011-0/+8
|
* 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-211-2/+0
| | | | | | | | | | 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>
* Pass -fpch-preprocess to GCC when precompiled headers are usedGabrĂ­el ArthĂșr PĂ©tursson2017-08-131-0/+3
| | | | | | | | | | | | 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 thread flags to checks if needed. Closes #2106.Jussi Pakkanen2017-08-011-0/+4
|
* find_library: Ignore libs on MSVC properlyNirbheek Chauhan2017-07-231-5/+6
| | | | | | | | 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
* Add build_rpath as new property allowing people to specify rpath entries ↔Jussi Pakkanen2017-07-211-3/+3
| | | | that are used in the build tree but will be removed on install.
* Renamed test case number to avoid dupes.Jussi Pakkanen2017-07-171-0/+2
|
* Fix checks on MinGW and VS2010.Jussi Pakkanen2017-07-171-1/+6
|
* Added VS support to simd detector.Jussi Pakkanen2017-07-171-1/+9
|
* Add 'Compiler.get_display_language'Guillaume Poirier-Morency2017-06-261-1/+1
| | | | | Use this when we print language-related information to the console and via the Ninja backend.
* Split out languages from compilers.pyAlistair Thomas2017-06-231-0/+1007