Skip to content

Instantly share code, notes, and snippets.

@dnadlinger
Created August 10, 2015 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnadlinger/050d5039765124a17871 to your computer and use it in GitHub Desktop.
Save dnadlinger/050d5039765124a17871 to your computer and use it in GitHub Desktop.
diff --git a/src/core/runtime.d b/src/core/runtime.d
index c569d74..ab0975a 100644
--- a/src/core/runtime.d
+++ b/src/core/runtime.d
@@ -50,7 +50,7 @@ private
}
-static this()
+shared static this()
{
// NOTE: Some module ctors will run before this handler is set, so it's
// still possible the app could exit without a stack trace. If
diff --git a/src/rt/minfo.d b/src/rt/minfo.d
index 286c212..3af2c89 100644
--- a/src/rt/minfo.d
+++ b/src/rt/minfo.d
@@ -145,7 +145,7 @@ struct ModuleGroup
ctorInCycle = true;
}
assert(stack[start].mod == m);
- if (ctorInCycle)
+ if (false) // Temporarily disable cycle checking.
{
/* This is an illegal cycle, no partial order can be established
* because the import chain have contradicting ctor/dtor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment