Browse Source

Merge pull request #922 from ghalliday/import

Fix problems with unknown modules if import unused

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 13 years ago
parent
commit
2d31c2734c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ecl/eclcc/eclcc.cpp

+ 2 - 1
ecl/eclcc/eclcc.cpp

@@ -833,7 +833,8 @@ void EclCC::processXmlFile(EclCompileInstance & instance, const char *archiveXML
     instance.legacyMode = archiveTree->getPropBool("@legacyMode", instance.legacyMode);
 
     //Some old archives contained imports, but no definitions of the module.  This option is to allow them to compile.
-    instance.ignoreUnknownImport = archiveTree->getPropBool("@ignoreUnknownImport", false);
+    //It shouldn't be needed for new archives in non-legacy mode. (But neither should it cause any harm.)
+    instance.ignoreUnknownImport = archiveTree->getPropBool("@ignoreUnknownImport", true);
 
     instance.eclVersion.set(archiveTree->queryProp("@eclVersion"));
     checkEclVersionCompatible(instance.errs, instance.eclVersion);