- change: Don't turn on "Show some more warnings (-Wextra)" option by default for DEBUG compiler set
This commit is contained in:
parent
b9aceb420b
commit
819d217708
1
NEWS.md
1
NEWS.md
|
@ -11,6 +11,7 @@ Red Panda C++ Version 2.1
|
||||||
- change: remove "Optimize for the following machine" and "Optimize less, while maintaining full compatibility" options in the compiler setting panel, which are obseleted.
|
- change: remove "Optimize for the following machine" and "Optimize less, while maintaining full compatibility" options in the compiler setting panel, which are obseleted.
|
||||||
- change: escape spaces in the executabe path under linux.
|
- change: escape spaces in the executabe path under linux.
|
||||||
- fix: Before run a project's executable, we should check timestamp for project files AND modification states of files openned in editor.
|
- fix: Before run a project's executable, we should check timestamp for project files AND modification states of files openned in editor.
|
||||||
|
- change: Don't turn on "Show some more warnings (-Wextra)" option by default for DEBUG compiler set
|
||||||
|
|
||||||
Red Panda C++ Version 2.0
|
Red Panda C++ Version 2.0
|
||||||
|
|
||||||
|
|
|
@ -50,14 +50,14 @@ void CompilerInfo::init()
|
||||||
void CompilerInfo::prepareCompilerOptions()
|
void CompilerInfo::prepareCompilerOptions()
|
||||||
{
|
{
|
||||||
QList<QPair<QString,QString>> sl;
|
QList<QPair<QString,QString>> sl;
|
||||||
// C options
|
QString groupName;
|
||||||
QString groupName = QObject::tr("C options");
|
// // C options
|
||||||
|
groupName = QObject::tr("C options");
|
||||||
addOption(CC_CMD_OPT_ANSI, QObject::tr("Support all ANSI standard C programs (-ansi)"), groupName, true, true, false, "-ansi");
|
addOption(CC_CMD_OPT_ANSI, QObject::tr("Support all ANSI standard C programs (-ansi)"), groupName, true, true, false, "-ansi");
|
||||||
addOption(CC_CMD_OPT_NO_ASM, QObject::tr("Do not recognize asm,inline or typeof as a keyword (-fno-asm)"), groupName, true, true, false, "-fno-asm");
|
addOption(CC_CMD_OPT_NO_ASM, QObject::tr("Do not recognize asm,inline or typeof as a keyword (-fno-asm)"), groupName, true, true, false, "-fno-asm");
|
||||||
addOption(CC_CMD_OPT_TRADITIONAL_CPP, QObject::tr("Imitate traditional C preprocessors (-traditional-cpp)"), groupName, true, true, false, "-traditional-cpp");
|
addOption(CC_CMD_OPT_TRADITIONAL_CPP, QObject::tr("Imitate traditional C preprocessors (-traditional-cpp)"), groupName, true, true, false, "-traditional-cpp");
|
||||||
|
|
||||||
groupName = QObject::tr("Code Generation");
|
groupName = QObject::tr("Code Generation");
|
||||||
addOption(CC_CMD_OPT_DEBUG_INFO, QObject::tr("Generate debugging information (-g3)"), groupName, true, true, false, "-g3");
|
|
||||||
// Optimization
|
// Optimization
|
||||||
sl.clear();
|
sl.clear();
|
||||||
sl.append(QPair<QString,QString>("Low","1"));
|
sl.append(QPair<QString,QString>("Low","1"));
|
||||||
|
@ -149,6 +149,7 @@ void CompilerInfo::prepareCompilerOptions()
|
||||||
sl.append(QPair<QString,QString>("64bit","64"));
|
sl.append(QPair<QString,QString>("64bit","64"));
|
||||||
addOption(CC_CMD_OPT_POINTER_SIZE, QObject::tr("Compile with the following pointer size (-mx)"), groupName, true, true, true, "-m", sl);
|
addOption(CC_CMD_OPT_POINTER_SIZE, QObject::tr("Compile with the following pointer size (-mx)"), groupName, true, true, true, "-m", sl);
|
||||||
|
|
||||||
|
addOption(CC_CMD_OPT_DEBUG_INFO, QObject::tr("Generate debugging information (-g3)"), groupName, true, true, false, "-g3");
|
||||||
addOption(CC_CMD_OPT_PROFILE_INFO, QObject::tr("Generate profiling info for analysis (-pg)"), groupName, true, true, true, "-pg");
|
addOption(CC_CMD_OPT_PROFILE_INFO, QObject::tr("Generate profiling info for analysis (-pg)"), groupName, true, true, true, "-pg");
|
||||||
|
|
||||||
// Warnings
|
// Warnings
|
||||||
|
|
|
@ -2551,7 +2551,7 @@ static void setReleaseOptions(Settings::PCompilerSet pSet) {
|
||||||
static void setDebugOptions(Settings::PCompilerSet pSet) {
|
static void setDebugOptions(Settings::PCompilerSet pSet) {
|
||||||
pSet->setCompileOption(CC_CMD_OPT_DEBUG_INFO, COMPILER_OPTION_ON);
|
pSet->setCompileOption(CC_CMD_OPT_DEBUG_INFO, COMPILER_OPTION_ON);
|
||||||
pSet->setCompileOption(CC_CMD_OPT_WARNING_ALL, COMPILER_OPTION_ON);
|
pSet->setCompileOption(CC_CMD_OPT_WARNING_ALL, COMPILER_OPTION_ON);
|
||||||
pSet->setCompileOption(CC_CMD_OPT_WARNING_EXTRA, COMPILER_OPTION_ON);
|
//pSet->setCompileOption(CC_CMD_OPT_WARNING_EXTRA, COMPILER_OPTION_ON);
|
||||||
pSet->setCompileOption(CC_CMD_OPT_USE_PIPE, COMPILER_OPTION_ON);
|
pSet->setCompileOption(CC_CMD_OPT_USE_PIPE, COMPILER_OPTION_ON);
|
||||||
|
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
|
|
Loading…
Reference in New Issue