Skip to content

Commit

Permalink
Fix LLVMInitializeNativeTarget()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens K. Mueller committed Aug 29, 2013
1 parent bfadb03 commit f583af0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion deimos/llvm/c/target.d
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,18 @@ static void LLVMInitializeAllDisassemblers() {
for JIT applications to ensure that the target gets linked in correctly. */
static LLVMBool LLVMInitializeNativeTarget() {
/* If we have a native target, initialize it to ensure it is linked in. */
return 1;
version(llvmNoConfig)
{
return 1;
}
else
{
import deimos.llvm.config.llvm_config;
LLVM_NATIVE_TARGETINFO();
LLVM_NATIVE_TARGET();
LLVM_NATIVE_TARGETMC();
return 0;
}
}

/*===-- Target Data -------------------------------------------------------===*/
Expand Down

0 comments on commit f583af0

Please sign in to comment.