Skip to content
Snippets Groups Projects
Verified Commit 7b4616e8 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

fix cross compilation due to bug in MinGW 8.3.0

implicit conversion from `filesystem::path` to `string` not supported even though it's in the standard
parent 12913200
Branches
Tags
No related merge requests found
Pipeline #2012 passed
...@@ -73,7 +73,10 @@ Include::interpret(ostream &output, bool no_line_macro, vector<filesystem::path> ...@@ -73,7 +73,10 @@ Include::interpret(ostream &output, bool no_line_macro, vector<filesystem::path>
} }
} }
Driver m(env, no_line_macro); Driver m(env, no_line_macro);
m.parse(filename, filename.stem(), incfile, output, false, vector<pair<string, string>>{}, paths); // Calling `string()` method on filename and filename.stem() because of bug in
// MinGW 8.3.0 that ignores implicit conversion to string from filename::path.
// Test if bug exists when version of MinGW is upgraded on Debian runners
m.parse(filename.string(), filename.stem().string(), incfile, output, false, vector<pair<string, string>>{}, paths);
} }
catch (StackTrace &ex) catch (StackTrace &ex)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment