diff dmd/mars.c @ 741:4ac97ec7c18e

Applied easy part from wilsonk's x86-64 patch in #107
author Christian Kamm <kamm incasoftware de>
date Thu, 30 Oct 2008 11:08:34 +0100
parents eee9efe5b51f
children ac39e5449ca5
line wrap: on
line diff
--- a/dmd/mars.c	Thu Oct 30 10:17:05 2008 +0100
+++ b/dmd/mars.c	Thu Oct 30 11:08:34 2008 +0100
@@ -851,6 +851,9 @@
         global.params.isLE = true;
         global.params.is64bit = true;
         global.params.cpu = ARCHx86_64;
+        if (global.params.useInlineAsm) {
+            VersionCondition::addPredefinedGlobalIdent("LLVM_InlineAsm_X86_64");
+        }
     }
     else if (strcmp(global.params.llvmArch,"ppc32")==0) {
         VersionCondition::addPredefinedGlobalIdent("PPC");