Linux fix

This commit is contained in:
Roy Qu 2023-02-12 14:22:45 +08:00
parent 0e3441e604
commit 23d5bb85b6
1 changed files with 0 additions and 4 deletions

View File

@ -298,12 +298,8 @@ void ProjectCompiler::writeMakeDefines(QFile &file)
} }
#elif defined(Q_OS_LINUX) #elif defined(Q_OS_LINUX)
asmFlags = "-f elf64"; asmFlags = "-f elf64";
if (mProject->getCompileOption(CC_CMD_OPT_DEBUG_INFO) == COMPILER_OPTION_ON)
asmFlags += " -g ";
#elif defined(Q_OS_MACOS) #elif defined(Q_OS_MACOS)
asmFlags = "-f macho64"; asmFlags = "-f macho64";
if (mProject->getCompileOption(CC_CMD_OPT_DEBUG_INFO) == COMPILER_OPTION_ON)
asmFlags += " -g ";
#endif #endif
writeln(file,"ASMFLAGS = " + asmFlags); writeln(file,"ASMFLAGS = " + asmFlags);
} }