Mercurial > projects > ldc
comparison gen/runtime.c @ 35:3cfcb944304e trunk
[svn r39] * Updated to DMD 1.022 with the exception of:
Bugzilla 278: dmd.conf search path doesn't work
This fix was causing crashes for me :/ So for it's the old behaviour
author | lindquist |
---|---|
date | Tue, 09 Oct 2007 06:21:30 +0200 |
parents | e116aa1488e6 |
children | 8b0e809563df |
comparison
equal
deleted
inserted
replaced
34:4648206ca213 | 35:3cfcb944304e |
---|---|
16 bool LLVM_D_InitRuntime() | 16 bool LLVM_D_InitRuntime() |
17 { | 17 { |
18 Logger::println("*** Loading D runtime ***"); | 18 Logger::println("*** Loading D runtime ***"); |
19 LOG_SCOPE; | 19 LOG_SCOPE; |
20 | 20 |
21 if (!global.params.runtimeImppath) { | |
22 error("You must set the runtime import path with -E"); | |
23 fatal(); | |
24 } | |
21 std::string filename(global.params.runtimeImppath); | 25 std::string filename(global.params.runtimeImppath); |
22 filename.append("/llvmdcore.bc"); | 26 filename.append("/llvmdcore.bc"); |
23 llvm::MemoryBuffer* buffer = llvm::MemoryBuffer::getFile(filename.c_str(), filename.length()); | 27 llvm::MemoryBuffer* buffer = llvm::MemoryBuffer::getFile(filename.c_str(), filename.length()); |
24 if (!buffer) { | 28 if (!buffer) { |
25 Logger::println("Failed to load runtime library from disk"); | 29 Logger::println("Failed to load runtime library from disk"); |