about summary refs log tree commit diff
path: root/src/comp/back
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-10-22 17:27:22 -0700
committerGraydon Hoare <graydon@mozilla.com>2010-10-22 17:27:22 -0700
commite5229b97d73a462b26dbb0d4f94030b41a3cb922 (patch)
treebd5f8cc8aa820c77ec1fe7aa6c71fcf20b6c9e18 /src/comp/back
parentcb254f35589c11d27fb95fbbe64b4272ef3954b8 (diff)
downloadrust-e5229b97d73a462b26dbb0d4f94030b41a3cb922.tar.gz
rust-e5229b97d73a462b26dbb0d4f94030b41a3cb922.zip
Don't use string == in x86.rs, doesn't work.
Diffstat (limited to 'src/comp/back')
-rw-r--r--src/comp/back/x86.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs
index 86631e93bf1..0a5fc506977 100644
--- a/src/comp/back/x86.rs
+++ b/src/comp/back/x86.rs
@@ -131,7 +131,7 @@ fn get_module_asm() -> str {
     auto align = 4;
 
     auto prefix = "";
-    if (target_os() == "macos") {
+    if (_str.eq(target_os(), "macos")) {
         prefix = "_";
     }