Skip to content

Commit 91d4503

Browse files
committed
cc files are also fine to compile
1 parent 00ada66 commit 91d4503

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell/GraalPythonCC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private void parseOptions(String[] args) {
167167
throw new RuntimeException("cannot mix source and compiled sources");
168168
}
169169
fileInputs.add(arg);
170-
} else if (arg.endsWith(".c") || arg.endsWith(".cpp") || arg.endsWith(".cxx")) {
170+
} else if (arg.endsWith(".c") || arg.endsWith(".cc") || arg.endsWith(".cpp") || arg.endsWith(".cxx")) {
171171
if (arg.endsWith(".cpp") || arg.endsWith(".cxx")) {
172172
isCpp = true;
173173
}

0 commit comments

Comments
 (0)