aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
AgeCommit message (Collapse)AuthorFilesLines
2018-06-18macos: Rewrite install_name for dependent built libraries on installNirbheek Chauhan1-2/+2
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.
2018-06-06Move <lang>_args to coredata.compiler_optionsXavier Claessens1-2/+2
2018-05-09Revert "Add macOS linker versioning information"Nirbheek Chauhan1-2/+2
This reverts commit fa6ca160548d7e8df9c4c724e6c96f5e004e5316. Closes https://github.com/mesonbuild/meson/issues/3550
2018-04-16Add macOS linker versioning informationTom Schoonjans1-2/+2
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-02-25Use include_directories for D impdirs.Jussi Pakkanen1-3/+11
Change the code to store D properties as plain data. Only convert them to compiler flags in the backend. This also means we can fully parse D arguments without needing to know the compiler being used.
2018-02-20d: gdc: Implement proper dependency gen supportMatthias Klumpp1-3/+10
Older versions of GDC had broken support for the -MQ flag (resulting in a compiler error). New versions of GDC have this issue fixed (some older versions received a backport). Starting with GCC 7.1 we can assume dependency generation to always work reliably.
2017-12-16More version information for DChristoph Behle1-8/+8
2017-09-12d: Implement specific properties for D featuresMatthias Klumpp1-1/+1
2017-09-12d: Add easy way to use D-specific featuresMatthias Klumpp1-5/+50
Of course D compilers have different flags to set some important D-specific settings. This adds a simple method to change these flags in a compiler-agnostic way in Meson. This replaces the previous `unittest_args` method with a more generic variant.
2017-07-21Add build_rpath as new property allowing people to specify rpath entries ↵Jussi Pakkanen1-3/+5
that are used in the build tree but will be removed on install.
2017-06-23Split out languages from compilers.pyAlistair Thomas1-0/+324