aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers.py
diff options
context:
space:
mode:
authorBedarkar, Malhar <malhar.bedarkar@cirrus.com>2018-03-05 18:26:39 -0600
committerBedarkar, Malhar <malhar.bedarkar@cirrus.com>2018-03-05 18:26:39 -0600
commita2ee76228e29f4cf5f52197dd2a726620445c81b (patch)
treec1436fc968d8b69c241a91316ec72cc4557c96dc /mesonbuild/linkers.py
parent7842bc03dd581c4beaa1b94746b5dfe5d38986c6 (diff)
downloadmeson-a2ee76228e29f4cf5f52197dd2a726620445c81b.zip
meson-a2ee76228e29f4cf5f52197dd2a726620445c81b.tar.gz
meson-a2ee76228e29f4cf5f52197dd2a726620445c81b.tar.bz2
First cut of ARMCC support for MESON.
Change-Id: I15d8258e84d392baaccb8f670e33eefcfe8cd49a
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 []