global_compiler: Add contract phase dependency
[nit.git] / src / compiler / global_compiler.nit
index ac5a2a1..737ec48 100644 (file)
@@ -30,7 +30,7 @@ redef class ToolContext
        # option --global
        var opt_global = new OptionBool("Use global compilation", "--global")
 
-       var global_compiler_phase = new GlobalCompilerPhase(self, null)
+       var global_compiler_phase = new GlobalCompilerPhase(self, [contracts_phase])
 
        redef init do
                super