diff options
author | GoaLitiuM <goalitium@kapsi.fi> | 2018-08-18 14:08:47 +0300 |
---|---|---|
committer | GoaLitiuM <goalitium@kapsi.fi> | 2018-08-20 22:27:31 +0300 |
commit | 7ab938d9aff64bfa9936daebbbb6b06d1b054ff1 (patch) | |
tree | 543207cd5cc75d7e37bf93a30d4987cadf29a858 /mesonbuild/compilers/d.py | |
parent | 82b38b60718b7edfb7f3ef2860287e6ac8c74aab (diff) | |
download | meson-7ab938d9aff64bfa9936daebbbb6b06d1b054ff1.zip meson-7ab938d9aff64bfa9936daebbbb6b06d1b054ff1.tar.gz meson-7ab938d9aff64bfa9936daebbbb6b06d1b054ff1.tar.bz2 |
Ignore unix related compiler arguments on Windows
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r-- | mesonbuild/compilers/d.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 0067e61..eafdc2d 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -103,6 +103,8 @@ class DCompiler(Compiler): return 'deps' def get_pic_args(self): + if is_windows(): + return [] return ['-fPIC'] def get_std_shared_lib_link_args(self): @@ -173,6 +175,9 @@ class DCompiler(Compiler): return [] def build_rpath_args(self, build_dir, from_dir, rpath_paths, build_rpath, install_rpath): + if is_windows(): + return [] + # This method is to be used by LDC and DMD. # GDC can deal with the verbatim flags. if not rpath_paths and not install_rpath: |