Skip to content

Commit

Permalink
Apply same change to SYCL backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
MalachiTimothyPhillips committed Sep 20, 2022
1 parent e29dce9 commit 01c1f6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/occa/internal/modes/dpcpp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ namespace occa
void setCompilerFlags(occa::json &dpcpp_properties) noexcept
{
std::string compiler_flags;
if (env::var("OCCA_DPCPP_COMPILER_FLAGS").size())
if (dpcpp_properties.has("compiler_flags"))
{
compiler_flags = env::var("OCCA_DPCPP_COMPILER_FLAGS");
compiler_flags = dpcpp_properties["compiler_flags"].toString();
}
else if (dpcpp_properties.has("compiler_flags"))
else if (env::var("OCCA_DPCPP_COMPILER_FLAGS").size())
{
compiler_flags = dpcpp_properties["compiler_flags"].toString();
compiler_flags = env::var("OCCA_DPCPP_COMPILER_FLAGS");
}
dpcpp_properties["compiler_flags"] = compiler_flags;
}
Expand Down

0 comments on commit 01c1f6f

Please sign in to comment.