Skip to content

Commit

Permalink
Add Windows-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Aug 12, 2024
1 parent 9f00ff9 commit 34aac63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ void Compiler::compile(std::string file) {
}

if(outType.find("win32") != std::string::npos) {
#if _WIN32
#ifndef _WIN32
Compiler::linkString += " --target=i686-pc-windows-gnu ";
#endif
raveOs = "WINDOWS";
}
else if(outType.find("win64") != std::string::npos || outType.find("windows") != std::string::npos) {
#if _WIN32
#ifndef _WIN32
Compiler::linkString += " --target=x86_64-pc-windows-gnu ";
#endif
raveOs = "WINDOWS";
Expand Down

0 comments on commit 34aac63

Please sign in to comment.