From ef86ac04b41aa14d2079cd7e257c81660da40675 Mon Sep 17 00:00:00 2001 From: neheb Date: Thu, 22 Jun 2017 17:34:07 -0700 Subject: [PATCH] Add OpenCL support OpenCL is basically C99. --- lib/path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/path.cpp b/lib/path.cpp index e5b4caee0..66e7d4a1a 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -188,7 +188,8 @@ bool Path::isC(const std::string &path) { // In unix, ".C" is considered C++ file const std::string extension = getFilenameExtension(path); - return (extension == ".c"); + return extension == ".c" || + extension == ".cl"; } bool Path::isCPP(const std::string &path)