Skip to content
Browse files

[fix] compiler, database: We need backend importation not just on com…

…pilation mode
  • Loading branch information...
1 parent be955c1 commit fa0658daeb81bad053be0f75685af942df3dcf3f @BourgerieQuentin BourgerieQuentin committed Mar 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 opa/pass_DbEngineImportation.ml
View
4 opa/pass_DbEngineImportation.ml
@@ -61,7 +61,7 @@ let import_packages engines =
ObjectFiles.add_compiler_packages packages
let process_code ~stdlib code =
- if stdlib && ObjectFiles.compilation_mode() == `compilation then
+ if stdlib then
let engines =
match QmlDbGen.Args.get_engine () with
| None -> []
@@ -102,9 +102,9 @@ let process_code ~stdlib code =
let finalize ~stdlib =
if stdlib then (
+ import_packages !r;
match ObjectFiles.compilation_mode() with
| `compilation ->
- import_packages !r;
ObjectFiles.resave ();
R.save !r
| _ -> ()

0 comments on commit fa0658d

Please sign in to comment.
Something went wrong with that request. Please try again.