aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-16 23:02:09 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-16 23:02:09 +0300
commitc58dd64f8e947f4659bcbc47d75e86e65043e714 (patch)
tree28be176b2646b02ae6cc006a00608a1152db35be /mesonbuild/linkers.py
parentfa6ca160548d7e8df9c4c724e6c96f5e004e5316 (diff)
parent7f8908336362cccd45516f48b5320380cec0e817 (diff)
downloadmeson-c58dd64f8e947f4659bcbc47d75e86e65043e714.zip
meson-c58dd64f8e947f4659bcbc47d75e86e65043e714.tar.gz
meson-c58dd64f8e947f4659bcbc47d75e86e65043e714.tar.bz2
Merged Arm CC support.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r--mesonbuild/linkers.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index 2333e27..8e491d9 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -13,9 +13,14 @@
# limitations under the License.
from .mesonlib import Popen_safe
+from . import mesonlib
class StaticLinker:
- pass
+ def can_linker_accept_rsp(self):
+ """
+ Determines whether the linker can accept arguments using the @rsp syntax.
+ """
+ return mesonlib.is_windows()
class VisualStudioLinker(StaticLinker):
@@ -75,6 +80,12 @@ class ArLinker(StaticLinker):
self.std_args = ['csrD']
else:
self.std_args = ['csr']
+ # For 'armar' the options should be prefixed with '-'.
+ if 'armar' in stdo:
+ self.std_args = ['-csr']
+
+ def can_linker_accept_rsp(self):
+ return False
def build_rpath_args(self, build_dir, from_dir, rpath_paths, build_rpath, install_rpath):
return []