aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py5
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: