[deploy]启用-O1

This commit is contained in:
Lixuanwang
2025-08-20 10:54:36 +08:00
parent bfc4071c36
commit 08f9cd67be

View File

@@ -70,10 +70,11 @@ void parseArgs(int argc, char **argv) {
if (optLevel < 0) { if (optLevel < 0) {
cerr << "Error: Optimization level must be non-negative." << endl; cerr << "Error: Optimization level must be non-negative." << endl;
usage(EXIT_FAILURE); usage(EXIT_FAILURE);
} else if (optLevel > 0) {
cerr << "Debugging, set optLevel to 0...\n";
optLevel = 0;
} }
// else if (optLevel > 0) {
// cerr << "Debugging, set optLevel to 0...\n";
// optLevel = 0;
// }
} catch (const std::invalid_argument& ia) { } catch (const std::invalid_argument& ia) {
cerr << "Error: Invalid argument for -O: " << optarg << endl; cerr << "Error: Invalid argument for -O: " << optarg << endl;
usage(EXIT_FAILURE); usage(EXIT_FAILURE);