File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ public class GraalPythonCC extends GraalPythonCompiler {
61
61
private List <String > execLinkArgs ;
62
62
private List <String > fileInputs ;
63
63
private boolean isCpp ;
64
+ private boolean allowCpp ;
64
65
65
66
GraalPythonCC () {
66
67
}
@@ -104,7 +105,7 @@ static void main(String[] args) {
104
105
105
106
private void run (String [] args ) {
106
107
parseOptions (args );
107
- if (isCpp ) {
108
+ if (! allowCpp && isCpp ) {
108
109
// cannot use streaming API anyMatch for this on SVM
109
110
for (String s : clangArgs ) {
110
111
if (s .contains ("--sysroot" )) {
@@ -159,6 +160,9 @@ private void parseOptions(String[] args) {
159
160
continue ; // the first verbose is not passed on to clang
160
161
}
161
162
break ;
163
+ case "-allowcpp" :
164
+ allowCpp = true ;
165
+ continue ;
162
166
default :
163
167
if (arg .endsWith (".o" ) || arg .endsWith (".bc" )) {
164
168
if (compile == null ) {
You can’t perform that action at this time.
0 commit comments