aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
AgeCommit message (Collapse)AuthorFilesLines
2018-06-10fixed sideci for cuda compilation fixBeau Johnston1-4/+4
2018-06-10added cuda compilerBeau Johnston1-1/+10
2018-06-06compilers: Use RUSTFLAGS from the env as default rust_args valueXavier Claessens1-1/+2
2018-06-06optinterpreter: Remove duplicated list of languagesXavier Claessens1-0/+1
It is important to keep the list of languages up to date in optinterpreter, otherwise we could have conflicting options when adding new languages.
2018-06-06Fix issues found by flake8Xavier Claessens1-1/+0
2018-06-06Move <lang>_args to coredata.compiler_optionsXavier Claessens1-6/+25
2018-06-06Move get_args_from_envvars() from environment to compilersXavier Claessens1-1/+52
2018-06-06Add a new option for building with Apple bitcode supportNirbheek Chauhan1-15/+34
Normally, people would just pass -fembed-bitcode in CFLAGS, but this conflicts with -Wl,-dead_strip_dylibs and -bundle, so we need it as an option so that those can be quietly disabled.
2018-06-05Add prog/lib dirs from the mingw cross-compiler to PATHNirbheek Chauhan1-2/+16
These directories contain DLLs that the executable may need, such as libstdc++-6.dll, libwinpthread, etc.
2018-05-30New compiler method: check_headerNirbheek Chauhan1-0/+3
This checks not only for existence, but also for usability of the header, which means it does a full compilation and not just pre-processing or __has_include. Fixes https://github.com/mesonbuild/meson/issues/2246
2018-05-29Don't raise StopIteration in generators, no longer allowed with Python 3.7. ↵Christoph Reiter1-1/+1
Fixes #3622 Raising StopIteration from a generator has been deprecated with Python 3.5 and is now an error with Python 3.7: https://docs.python.org/3.8/library/exceptions.html#StopIteration Just use return instead.
2018-05-09Revert "Add macOS linker versioning information"Nirbheek Chauhan1-16/+8
This reverts commit fa6ca160548d7e8df9c4c724e6c96f5e004e5316. Closes https://github.com/mesonbuild/meson/issues/3550
2018-05-04add linker flag to handle $ORIGIN on OpenBSDJasper Lievisse Adriaanse1-2/+2
2018-05-02Can combine D and C++ in a single target. Closes #3125.Jussi Pakkanen1-0/+6
2018-04-17Merge pull request #3353 from xclaesse/has-link-argumentJussi Pakkanen1-10/+8
Add has_link_argument() and friends
2018-04-17Explicitly check for OpenMP headers.Elliott Sales de Andrade1-1/+2
2018-04-17Add an OpenMP dependency.Elliott Sales de Andrade1-0/+20
This works similarly to the thread dependency which stores the various inconsistent flags in each compiler.
2018-04-16Add has_link_argument() and friendsXavier Claessens1-1/+9
Closes: #3335.
2018-04-16has_argument(): reduce code duplicationXavier Claessens1-10/+0
2018-04-16Merged Arm CC support.Jussi Pakkanen1-0/+90
2018-04-16Add macOS linker versioning informationTom Schoonjans1-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.
2018-04-16Do not use -soname when linking with GCC for mingw/cygwinMarvin Scholz1-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
2018-04-15Merge pull request #3115 from makise-homura/e2k-lcc-supportJussi Pakkanen1-1/+24
Support lcc compiler for e2k (Elbrus) architecture
2018-04-15compilers: is_library: Also detect .so files with version (using soregex)Martin Hostettler1-1/+4
2018-04-14compilers: Cache compiler checks where we don't want the outputNirbheek Chauhan1-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%.
2018-04-13Deduplicate dependencies resolved to absolute pathsDaniel Schulte1-3/+10
If paths are absolute the order of search directories is not relevant as the path is already resolved.
2018-03-27Updates to CPP support and update review changesSomasekhar Penugonda1-59/+70
2018-03-23Added get_asneeded_args method to Intel compiler.Alexis Jeandet1-0/+8
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-03-21Fix b_ndebug=if-release optionAleksey Filippov1-1/+3
Provide get_{type}_options_for_target() methods that unite {type} and builtin options.
2018-03-20Fixed failure if compiler messages is not in UTF-8makise-homura1-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.
2018-03-20Added specific get_library_dirs function for lccmakise-homura1-0/+12
2018-03-19Add -Wl,-dead_strip_dylibs supportDavid Seifert1-3/+26
* `-Wl,-dead_strip_dylibs` is the analogue of `-Wl,--as-needed` on macOS.
2018-03-19Fixed indentation and space issues found by SideCImakise-homura1-1/+1
2018-03-19Added Elbrus lcc compilers support as inheritance from gcc onesmakise-homura1-0/+11
2018-03-14- Updating cpp_std options similar to other compiler classesBedarkar, Malhar1-4/+30
- Updating environment.py for selecting '--vsn' option for armcc only. - Updating build type arguments from GitHub pull request - 3157 Change-Id: Id3151e7715ec1016afdbd65391bb0d414ec7de13
2018-03-07Meson Github pull request - 3186 requested changesSomasekhar Penugonda1-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
2018-03-05First cut of ARMCC support for MESON.Bedarkar, Malhar1-0/+51
Change-Id: I15d8258e84d392baaccb8f670e33eefcfe8cd49a
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