diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-28 18:28:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-28 18:28:31 +0200 |
commit | 6357ad0cd051d56deeb6c029a436b47b1f5216ae (patch) | |
tree | c331dd4a6dafd57aa3c933baf282ff9e6b850ddd /mesonbuild/dependencies.py | |
parent | 85304bd8cf74a958a81f0df74f3b81955ac247b4 (diff) | |
parent | 471904f0c50e9646d644efaf27c0ff4d5fce6634 (diff) | |
download | meson-6357ad0cd051d56deeb6c029a436b47b1f5216ae.zip meson-6357ad0cd051d56deeb6c029a436b47b1f5216ae.tar.gz meson-6357ad0cd051d56deeb6c029a436b47b1f5216ae.tar.bz2 |
Merge pull request #1321 from centricular/compiler-args-class
Improve compiler argument handling with a new class CompilerArgs derived from list()
Diffstat (limited to 'mesonbuild/dependencies.py')
-rw-r--r-- | mesonbuild/dependencies.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py index 6ae91d4..b01e0a8 100644 --- a/mesonbuild/dependencies.py +++ b/mesonbuild/dependencies.py @@ -59,7 +59,7 @@ class Dependency: def get_name(self): return self.name - def get_exe_args(self): + def get_exe_args(self, compiler): return [] def need_threads(self): @@ -1045,16 +1045,14 @@ class QtBaseDependency(Dependency): def found(self): return self.is_found - def get_exe_args(self): + def get_exe_args(self, compiler): # Originally this was -fPIE but nowadays the default # for upstream and distros seems to be -reduce-relocations # which requires -fPIC. This may cause a performance # penalty when using self-built Qt or on platforms # where -fPIC is not required. If this is an issue # for you, patches are welcome. - if mesonlib.is_linux(): - return ['-fPIC'] - return [] + return compiler.get_pic_args() class Qt5Dependency(QtBaseDependency): def __init__(self, env, kwargs): |