Commit b9eb03e7 authored by Artur Wojcik's avatar Artur Wojcik
Browse files

remove -fPIC on Windows - invalid option error msg

parent 82824b0c
...@@ -46,10 +46,11 @@ std::function<F> ...@@ -46,10 +46,11 @@ std::function<F>
compile_function(const std::string& src, const std::string& flags, const std::string& fname) compile_function(const std::string& src, const std::string& flags, const std::string& fname)
{ {
migraphx::src_compiler compiler; migraphx::src_compiler compiler;
compiler.flags = flags + "-std=c++14 -fPIC -shared"; compiler.flags = flags + "-std=c++14 -shared";
#ifdef _WIN32 #ifdef _WIN32
compiler.output = "simple.dll"; compiler.output = "simple.dll";
#else #else
compiler.flags += " -fPIC";
compiler.output = "libsimple.so"; compiler.output = "libsimple.so";
#endif #endif
migraphx::src_file f{"main.cpp", src}; migraphx::src_file f{"main.cpp", src};
......
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