Skip to content

Commit e87adf4

Browse files
committed
JavaCL: quote handle compiler options with spaces (issue #274)
1 parent 53c5b64 commit e87adf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/src/main/java/com/nativelibs4java/opencl/CLProgram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ protected String getOptionsString() {
597597
}
598598
}
599599
for (String option : extraBuildOptions)
600-
b.append(option).append(' ');
600+
b.append(option.contains(" ") || option.contains("\"") ? "\"" + option.replaceAll("\"", "\\\"") + "\"" : option).append(' ');
601601

602602
}
603603

0 commit comments

Comments
 (0)