Skip to content

Commit 95ee399

Browse files
committed
Disable pch when using OCL 3.0
1 parent 1024459 commit 95ee399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options_compile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
287287
bool useModules = !std::any_of(extMap.begin(), extMap.end(),
288288
[](const auto& p) {return p.second == false;});
289289

290-
if (useModules) {
290+
if (useModules && (iCLStdSet < 300)) {
291291
effectiveArgs.push_back("-fmodules");
292292
if (fp64Enable == 0) {
293293
if (szTriple.find("spir64") != szTriple.npos) {

0 commit comments

Comments
 (0)