summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cs.py
Commit message (Collapse)AuthorAgeFilesLines
* compilers: replace uses of mesonlib.is_<os>() with self.info.is_<os>()Dylan Baker2019-10-071-2/+1
| | | | Since these are cross compilation safe, while the former is not.
* compilers: replace CompilerType with MachineInfoDylan Baker2019-10-071-7/+15
| | | | | | Now that the linkers are split out of the compilers this enum is only used to know what platform we're compiling for. Which is what the MachineInfo class is for
* compilers: Dispatch to dynamic linker classDylan Baker2019-08-141-13/+3
| | | | | Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
* Purge `is_cross` and friends without changing user interfacesJohn Ericson2019-06-091-7/+7
| | | | | | | | | | | | In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed.
* Fix builtin variable namesDaniel Mensinger2019-04-291-2/+2
|
* C# and Java compilers should have `is_cross = False`John Ericson2019-02-011-0/+1
| | | | | All compilers should define this attribute. Probably should change base class to require this.
* Added more compiler option supportDaniel Mensinger2019-01-061-0/+6
|
* Absolute path generation refactoringDaniel Mensinger2019-01-061-0/+3
|
* Added unit testDaniel Mensinger2019-01-061-1/+1
|
* Fixed list_target_files and list_targetsDaniel Mensinger2019-01-061-1/+1
|
* Convert buildtype to optimization and debug options (#3489)Jussi Pakkanen2018-08-181-0/+13
|
* macos: Rewrite install_name for dependent built libraries on installNirbheek Chauhan2018-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | On macOS, we set the install_name for built libraries to @rpath/libfoo.dylib, and when linking to the library, we set the RPATH to its path in the build directory. This allows all built binaries to be run as-is from the build directory (uninstalled). However, on install, we have to strip all the RPATHs because they point to the build directory, and we change the install_name of all built libraries to the absolute path to the library. This causes the install name in binaries to be out of date. We now change that install name to point to the absolute path to each built library after installation. Fixes https://github.com/mesonbuild/meson/issues/3038 Fixes https://github.com/mesonbuild/meson/issues/3077 With this, the default workflow on macOS matches what everyone seems to do, including Autotools and CMake. The next step is providing a way for build files to override the install_name that is used after installation for use with, f.ex., private libraries when combined with the install_rpath: kwarg on targets.
* Revert "Add macOS linker versioning information"Nirbheek Chauhan2018-05-091-1/+1
| | | | | | This reverts commit fa6ca160548d7e8df9c4c724e6c96f5e004e5316. Closes https://github.com/mesonbuild/meson/issues/3550
* Add macOS linker versioning informationTom Schoonjans2018-04-161-1/+1
| | | | | | 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.
* Hide banner when invoking csc.Jussi Pakkanen2018-02-251-1/+7
|
* Add support for Visual Studio csc c# compilerThibault Saunier2018-02-251-6/+32
|
* More version information for C#Christoph Behle2017-12-161-2/+2
|
* Add build_rpath as new property allowing people to specify rpath entries ↵Jussi Pakkanen2017-07-211-1/+1
| | | | that are used in the build tree but will be removed on install.
* Use 'C sharp' instead of 'C#'Guillaume Poirier-Morency2017-06-261-1/+1
| | | | The '#' is reserved for Ninja comments and cannot be escaped.
* 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-0/+106