clean up code

This commit is contained in:
Roy Qu 2024-03-26 12:56:50 +08:00
parent 76e098bfc6
commit 5c7e7fb793
2 changed files with 0 additions and 5 deletions

View File

@ -142,9 +142,6 @@ void SDCCProjectCompiler::writeMakeDefines(QFile &file)
QString cc = extractFileName(compilerSet()->CCompiler()); QString cc = extractFileName(compilerSet()->CCompiler());
QStringList cCompileArguments = getCCompileArguments(mOnlyCheckSyntax); QStringList cCompileArguments = getCCompileArguments(mOnlyCheckSyntax);
if (cCompileArguments.contains("-g3"))
cCompileArguments << "-D_DEBUG";
QStringList libraryArguments = getLibraryArguments(FileType::Project); QStringList libraryArguments = getLibraryArguments(FileType::Project);
QStringList cIncludeArguments = getCIncludeArguments() + getProjectIncludeArguments(); QStringList cIncludeArguments = getCIncludeArguments() + getProjectIncludeArguments();

View File

@ -2526,8 +2526,6 @@ QStringList Settings::CompilerSet::defines(bool isCpp) {
arguments.append("-D_DEBUG"); arguments.append("-D_DEBUG");
arguments.append(NULL_FILE); arguments.append(NULL_FILE);
qDebug()<<arguments;
QFileInfo ccompiler(mCCompiler); QFileInfo ccompiler(mCCompiler);
QByteArray output = getCompilerOutput(ccompiler.absolutePath(),ccompiler.fileName(),arguments); QByteArray output = getCompilerOutput(ccompiler.absolutePath(),ccompiler.fileName(),arguments);
// 'cpp.exe -dM -E -x c++ -std=c++17 NUL' // 'cpp.exe -dM -E -x c++ -std=c++17 NUL'