Skip to content

Commit

Permalink
Merge pull request #951 from kmaehashi/support-includedir-hiprtc
Browse files Browse the repository at this point in the history
Support specifying include directories (`-I`) through hipRTC
  • Loading branch information
pvelesko authored Oct 28, 2024
2 parents fa82b1b + 21cc32e commit 84f0d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spirv_hiprtc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static bool processOptions(chipstar::Program &Program, int NumOptions,
continue; // Consider NULL pointers are empty.
auto OptionIn = trim(std::string_view(Options[OptIdx]));

if (Match(OptionIn, "-D.*") || Match(OptionIn, "--?std=[cC][+][+][0-9]*")) {
if (Match(OptionIn, "-D.*") || Match(OptionIn, "--?std=[cC][+][+][0-9]*") || Match(OptionIn, "-I.*")) {
logDebug("hiprtc: accept option '{}'", std::string(OptionIn));
OptionsOut.Options.emplace_back(OptionIn);
continue;
Expand Down

0 comments on commit 84f0d89

Please sign in to comment.