Commit 82824b0c authored by Artur Wojcik's avatar Artur Wojcik
Browse files

use Clang++ on Windows from HIP SDK

parent 6342ca06
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
#define MIGRAPHX_GUARD_MIGRAPHX_COMPILE_SRC_HPP #define MIGRAPHX_GUARD_MIGRAPHX_COMPILE_SRC_HPP
#include <migraphx/config.hpp> #include <migraphx/config.hpp>
#ifdef _WIN32
#include <migraphx/env.hpp>
#endif
#include <migraphx/filesystem.hpp> #include <migraphx/filesystem.hpp>
#include <functional> #include <functional>
#include <string> #include <string>
...@@ -51,9 +54,17 @@ struct src_file ...@@ -51,9 +54,17 @@ struct src_file
} }
}; };
#ifdef _WIN32
MIGRAPHX_DECLARE_ENV_VAR(HIP_PATH)
#endif
struct MIGRAPHX_EXPORT src_compiler struct MIGRAPHX_EXPORT src_compiler
{ {
#ifdef _WIN32
std::string compiler = (fs::path{string_value_of(HIP_PATH{})} / "bin" / "clang++.exe").string();
#else
std::string compiler = "c++"; std::string compiler = "c++";
#endif
std::string flags = ""; std::string flags = "";
std::string output = ""; std::string output = "";
std::string launcher = ""; std::string launcher = "";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment