summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix b_ndebug=if-release optionAleksey Filippov2018-03-211-1/+3
| | | | Provide get_{type}_options_for_target() methods that unite {type} and builtin options.
* Add -Wl,-dead_strip_dylibs supportDavid Seifert2018-03-191-3/+26
| | | | | * `-Wl,-dead_strip_dylibs` is the analogue of `-Wl,--as-needed` on macOS.
* Enable default linker optimisations in MSVC release and minsize buildsLeon Krause2018-02-111-2/+5
|
* Use os.path: basename() and dirname() instead of split()Aleksey Filippov2018-01-301-3/+3
| | | | | | | | | | | | According to Python documentation[1] dirname and basename are defined as follows: os.path.dirname() = os.path.split()[0] os.path.basename() = os.path.split()[1] For the purpose of better readability split() is replaced by appropriate function if only one part of returned tuple is used. [1]: https://docs.python.org/3/library/os.path.html#os.path.split
* tests: fix rpath_uses_ORIGIN on dragonflybsdDylan Baker2018-01-061-0/+5
| | | | | Which always seems to prepend /usr/lib/gcc50 (or whatever version) to the rpath, and $ORIGIN after that.
* compilers: fix unittest "16 prebuilt shared" on dragonfly bsdDylan Baker2018-01-061-1/+4
|
* 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-201-1/+5
|\ | | | | Add more version information to compiler
| * More version information for compilers.Christoph Behle2017-12-161-1/+5
| | | | | | | | | | | | | | | | 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.
* | 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.
* Merge pull request #2618 from mesonbuild/osxlinkerfixesJussi Pakkanen2017-12-031-1/+15
|\ | | | | Fix many things have have been slightly broken in OSX
| * Use absolute paths for rpaths on OSX.Jussi Pakkanen2017-11-261-1/+15
| |
* | spelling: overriddenJosh Soref2017-11-261-2/+2
| |
* | spelling: occurrenceJosh Soref2017-11-261-6/+6
|/
* 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-011-0/+39
|
* flake8: Perform suggested whitespace/formatting changesLuke Shumaker2017-09-211-1/+1
| | | | | This only touches newlines, spaces, and (occaisionally) commas. Anything else is left for another commit.
* 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
* find_library: Ignore libs on MSVC properlyNirbheek Chauhan2017-07-231-0/+4
| | | | | | | | 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-211-2/+5
|\
| * Add build_rpath as new property allowing people to specify rpath entries ↔Jussi Pakkanen2017-07-211-2/+5
| | | | | | | | 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.
* Fix checks on MinGW and VS2010.Jussi Pakkanen2017-07-171-1/+1
|
* Added VS support to simd detector.Jussi Pakkanen2017-07-171-0/+24
|
* 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
| |
* | compilers: Use 'get_display_language' for language-related exceptionsGuillaume Poirier-Morency2017-06-261-11/+11
| |
* | Add 'Compiler.get_display_language'Guillaume Poirier-Morency2017-06-261-0/+3
|/ | | | | 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-2155/+1
|
* Converted compilers.py to a sub-packageAlistair Thomas2017-06-221-0/+3213