Index: pydir/targets.py |
diff --git a/pydir/targets.py b/pydir/targets.py |
index 59b76cafb14a4083b4e6e929409a9a7b191d921a..5effd4ecf5299339419d02f987c87df39d4e758c 100644 |
--- a/pydir/targets.py |
+++ b/pydir/targets.py |
@@ -44,4 +44,4 @@ ARM32Target = TargetInfo(target='arm32', |
cross_headers=['-isystem', FindARMCrossInclude()]) |
def ConvertTripleToNaCl(nonsfi_triple): |
- return nonsfi_triple.replace('linux', 'nacl') |
+ return nonsfi_triple[:nonsfi_triple.find('-linux')] + '-nacl' |