aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
AgeCommit message (Collapse)AuthorFilesLines
2018-02-11Enable default linker optimisations in MSVC release and minsize buildsLeon Krause1-2/+5
2018-01-30Use os.path: basename() and dirname() instead of split()Aleksey Filippov1-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
2018-01-06tests: fix rpath_uses_ORIGIN on dragonflybsdDylan Baker1-0/+5
Which always seems to prepend /usr/lib/gcc50 (or whatever version) to the rpath, and $ORIGIN after that.
2018-01-06compilers: fix unittest "16 prebuilt shared" on dragonfly bsdDylan Baker1-1/+4
2017-12-30add Compiler.thread_flags() stubAlexey Stukalov1-0/+3
fixes #2834
2017-12-30compilers: prefer C++ over objc in clink_langsNirbheek Chauhan1-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
2017-12-23Add whitespace around '+'.Benjamin Redelings1-1/+1
2017-12-23Fix linking with clang++ on linux if install_rpath.Benjamin Redelings1-1/+6
2017-12-20Merge pull request #2791 from behlec/compiler-versionJussi Pakkanen1-1/+5
Add more version information to compiler
2017-12-17Allow value 'if-release' for b_ndebug project option. (#1896)Hemmo Nieminen1-4/+3
When set, NDEBUG will be automatically defined for for release builds but not for other build types.
2017-12-16More version information for compilers.Christoph Behle1-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.
2017-12-03Merge pull request #2618 from mesonbuild/osxlinkerfixesJussi Pakkanen1-1/+15
Fix many things have have been slightly broken in OSX
2017-11-26Use absolute paths for rpaths on OSX.Jussi Pakkanen1-1/+15
2017-11-26spelling: overriddenJosh Soref1-2/+2
2017-11-26spelling: occurrenceJosh Soref1-6/+6
2017-11-14Fix #2620rkfg1-1/+3
2017-11-09Better check for when address sanitizer is enabled. Closes #2590.Jussi Pakkanen1-1/+1
2017-11-02Warn when no inc dir is found from parsing GNU compiler outputAlexis Jeandet1-1/+4
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-01Fix detection of include dirs with gnu compiler and non C localeAlexis Jeandet1-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>
2017-10-01C/C++: Get default include dirs from compilersNiklas Claesson1-0/+39
2017-09-21flake8: Perform suggested whitespace/formatting changesLuke Shumaker1-1/+1
This only touches newlines, spaces, and (occaisionally) commas. Anything else is left for another commit.
2017-08-31Add Compiler.get_supported_arguments()Daniel Stone1-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)
2017-08-18Fix detection of clang "optimization arguments"Peter Harris1-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
2017-07-23find_library: Ignore libs on MSVC properlyNirbheek Chauhan1-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
2017-07-23CompilerArgs: Put start/end-group around shared libs tooNirbheek Chauhan1-8/+15
Closes https://github.com/mesonbuild/meson/issues/2096
2017-07-21Merged buildrpath branch.Jussi Pakkanen1-2/+5
2017-07-21Fix linking Objective-C shared libs on OSX.Alessandro Decina1-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.
2017-07-21Add build_rpath as new property allowing people to specify rpath entries ↔Jussi Pakkanen1-2/+5
that are used in the build tree but will be removed on install.
2017-07-17Fix checks on MinGW and VS2010.Jussi Pakkanen1-1/+1
2017-07-17Added VS support to simd detector.Jussi Pakkanen1-0/+24
2017-07-17Fix a few OSX "features".Jussi Pakkanen1-1/+1
2017-07-17Created simd module.Jussi Pakkanen1-0/+26
2017-07-16Fix typoChocobo11-1/+1
profile guide optimization -> profile guided optimization
2017-07-15Fix how rpath directories are handled.Hemmo Nieminen1-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.
2017-07-15Allow both address- and undefined behavior sanitizers at the same timeGabrĂ­el ArthĂșr PĂ©tursson1-1/+1
2017-06-29Fix a missing path issue causing Python traceback.Hemmo Nieminen1-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.
2017-06-27Merged Genie support.Jussi Pakkanen1-1/+1
2017-06-26compilers: Use 'get_display_language' for language-related exceptionsGuillaume Poirier-Morency1-11/+11
2017-06-26Add 'Compiler.get_display_language'Guillaume Poirier-Morency1-0/+3
Use this when we print language-related information to the console and via the Ninja backend.
2017-06-26Recognise .gs extension as a Vala sourceAlistair Thomas1-1/+1
2017-06-23Split out languages from compilers.pyAlistair Thomas1-2155/+1
2017-06-22Converted compilers.py to a sub-packageAlistair Thomas1-0/+3213