diff 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
line wrap: on
line diff
--- a/gen/runtime.c	Tue Oct 09 02:50:00 2007 +0200
+++ b/gen/runtime.c	Tue Oct 09 06:21:30 2007 +0200
@@ -18,6 +18,10 @@
     Logger::println("*** Loading D runtime ***");
     LOG_SCOPE;
 
+    if (!global.params.runtimeImppath) {
+        error("You must set the runtime import path with -E");
+        fatal();
+    }
     std::string filename(global.params.runtimeImppath);
     filename.append("/llvmdcore.bc");
     llvm::MemoryBuffer* buffer = llvm::MemoryBuffer::getFile(filename.c_str(), filename.length());