summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
Commit message (Collapse)AuthorAgeFilesLines
...
* add linker flag to handle $ORIGIN on OpenBSDJasper Lievisse Adriaanse2018-05-041-2/+2
|
* Can combine D and C++ in a single target. Closes #3125.Jussi Pakkanen2018-05-021-0/+6
|
* Merge pull request #3353 from xclaesse/has-link-argumentJussi Pakkanen2018-04-171-10/+8
|\ | | | | Add has_link_argument() and friends
| * Add has_link_argument() and friendsXavier Claessens2018-04-161-1/+9
| | | | | | | | Closes: #3335.
| * has_argument(): reduce code duplicationXavier Claessens2018-04-161-10/+0
| |
* | Explicitly check for OpenMP headers.Elliott Sales de Andrade2018-04-171-1/+2
| |
* | Add an OpenMP dependency.Elliott Sales de Andrade2018-04-171-0/+20
|/ | | | | This works similarly to the thread dependency which stores the various inconsistent flags in each compiler.
* Merged Arm CC support.Jussi Pakkanen2018-04-161-0/+90
|\
| * Updates to CPP support and update review changesSomasekhar Penugonda2018-03-271-59/+70
| |
| * - Updating cpp_std options similar to other compiler classesBedarkar, Malhar2018-03-141-4/+30
| | | | | | | | | | | | | | - Updating environment.py for selecting '--vsn' option for armcc only. - Updating build type arguments from GitHub pull request - 3157 Change-Id: Id3151e7715ec1016afdbd65391bb0d414ec7de13
| * Meson Github pull request - 3186 requested changesSomasekhar Penugonda2018-03-071-2/+4
| | | | | | | | | | - Fixing flake8 error in compilers.py - [E124] closing bracket does not match visual indentation - Updating ARMCCompiler constructor in c.py to raise error as per comments
| * First cut of ARMCC support for MESON.Bedarkar, Malhar2018-03-051-0/+51
| | | | | | | | Change-Id: I15d8258e84d392baaccb8f670e33eefcfe8cd49a
* | Add macOS linker versioning informationTom Schoonjans2018-04-161-8/+16
| | | | | | | | | | | | This patch exploits the information residing in ltversion to set the -compatibility_version and -current_version flags that are passed to the linker on macOS.
* | Do not use -soname when linking with GCC for mingw/cygwinMarvin Scholz2018-04-161-2/+4
| | | | | | | | | | | | | | | | GNU LD does not use soname when linking a PE/COFF binary, so it makes no difference, but it breaks when using the llvm linker (lld), which does not support the soname flag when building PE/COFF binaries for Windows. Fix #3179
* | Merge pull request #3115 from makise-homura/e2k-lcc-supportJussi Pakkanen2018-04-151-1/+24
|\ \ | | | | | | Support lcc compiler for e2k (Elbrus) architecture
| * | Fixed failure if compiler messages is not in UTF-8makise-homura2018-03-201-1/+1
| | | | | | | | | | | | | | | For example, Elbrus lcc does output in KOI8-R, if LC_ALL=C, and there is no English counterpart for original Russian message.
| * | Added specific get_library_dirs function for lccmakise-homura2018-03-201-0/+12
| | |
| * | Fixed indentation and space issues found by SideCImakise-homura2018-03-191-1/+1
| | |
| * | Added Elbrus lcc compilers support as inheritance from gcc onesmakise-homura2018-03-191-0/+11
| |/
* | compilers: is_library: Also detect .so files with version (using soregex)Martin Hostettler2018-04-151-1/+4
| |
* | compilers: Cache compiler checks where we don't want the outputNirbheek Chauhan2018-04-141-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | This caching is only for a single run, so it doesn't help reconfigure. However, it is useful for subproject setups where different subprojects will run the same compiler checks. The cache is also per compiler instance and is not used for functions that want to read or run the outputted object file or binary. For gst-build, this halves the number of compiler checks that are run and reduces configuration time by 20%.
* | Deduplicate dependencies resolved to absolute pathsDaniel Schulte2018-04-131-3/+10
| | | | | | | | If paths are absolute the order of search directories is not relevant as the path is already resolved.
* | Added get_asneeded_args method to Intel compiler.Alexis Jeandet2018-03-231-0/+8
| | | | | | | | Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
* | 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