diff --git a/src/comp/back/x86.rs b/src/comp/back/x86.rs index 86631e93bf12..0a5fc506977a 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 = "_"; }