Created
August 10, 2015 18:50
-
-
Save dnadlinger/050d5039765124a17871 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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