clean up code
This commit is contained in:
parent
76e098bfc6
commit
5c7e7fb793
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue