mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Patch to make assembly output compatible with mingw compilation (identical
to cygwin) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -84,9 +84,10 @@ bool X86SharedAsmPrinter::doInitialization(Module& M) {
|
|||||||
forCygwin = false;
|
forCygwin = false;
|
||||||
const std::string& TT = M.getTargetTriple();
|
const std::string& TT = M.getTargetTriple();
|
||||||
if (TT.length() > 5)
|
if (TT.length() > 5)
|
||||||
forCygwin = TT.find("cygwin") != std::string::npos;
|
forCygwin = TT.find("cygwin") != std::string::npos ||
|
||||||
|
TT.find("mingw") != std::string::npos;
|
||||||
else if (TT.empty()) {
|
else if (TT.empty()) {
|
||||||
#ifdef __CYGWIN__
|
#if defined(__CYGWIN__) || defined(__MINGW32__)
|
||||||
forCygwin = true;
|
forCygwin = true;
|
||||||
#else
|
#else
|
||||||
forCygwin = false;
|
forCygwin = false;
|
||||||
|
Reference in New Issue
Block a user