From d253f7e83ec19a09ecdff635e02c2a34bbd7fcc6 Mon Sep 17 00:00:00 2001 From: AlexN-114 Date: Thu, 13 Apr 2023 04:20:30 +0200 Subject: [PATCH] Update projectcompiler.cpp (#111) Fixes a problem with generating "Makfile.win" --- RedPandaIDE/compiler/projectcompiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/compiler/projectcompiler.cpp b/RedPandaIDE/compiler/projectcompiler.cpp index 3837dbf5..b4535601 100644 --- a/RedPandaIDE/compiler/projectcompiler.cpp +++ b/RedPandaIDE/compiler/projectcompiler.cpp @@ -467,12 +467,12 @@ void ProjectCompiler::writeMakeObjFilesRules(QFile &file) } } - if (fileType==FileType::CppSource || fileType==FileType::CppSource) { + if (fileType==FileType::CSource || fileType==FileType::CppSource) { if (mOnlyCheckSyntax) { if (unit->compileCpp()) writeln(file, "\t$(CPP) -c " + genMakePath1(shortFileName) + " $(CXXFLAGS) " + encodingStr); else - writeln(file, "\t(CC) -c " + genMakePath1(shortFileName) + " $(CFLAGS) " + encodingStr); + writeln(file, "\t$(CC) -c " + genMakePath1(shortFileName) + " $(CFLAGS) " + encodingStr); } else { if (unit->compileCpp()) writeln(file, "\t$(CPP) -c " + genMakePath1(shortFileName) + " -o " + objFileName2 + " $(CXXFLAGS) " + encodingStr);