map.put(grammarFile.getAbsolutePath(), FileCommands.fileHash(grammarFile));
ModuleKey key = new ModuleKey(map, "");
Path permissiveGrammar = lookupGrammarInCache(sdfCache, key);
if (permissiveGrammar == null) {
permissiveGrammar = FileCommands.newTempFile("def");
makePermissive(new AbsolutePath(grammarFile.getAbsolutePath()), permissiveGrammar);
permissiveGrammar = cacheParseTable(sdfCache, key, permissiveGrammar, environment);
}
cmd.add("-Idef");
cmd.add(FileCommands.nativePath(permissiveGrammar.getAbsolutePath()));