소스 검색

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 년 전
부모
커밋
2d31c2734c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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);