summaryrefslogtreecommitdiff
path: root/src/ortho/llvm/ortho_code_main.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/llvm/ortho_code_main.adb')
-rw-r--r--src/ortho/llvm/ortho_code_main.adb2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ortho/llvm/ortho_code_main.adb b/src/ortho/llvm/ortho_code_main.adb
index 8d7ba82..b44081f 100644
--- a/src/ortho/llvm/ortho_code_main.adb
+++ b/src/ortho/llvm/ortho_code_main.adb
@@ -132,7 +132,7 @@ begin
Codegen := ObjectFile;
elsif Arg = "-O0" then
Optimization := CodeGenLevelNone;
- elsif Arg = "-O1" then
+ elsif Arg = "-O1" or else Arg = "-O" then
Optimization := CodeGenLevelLess;
elsif Arg = "-O2" then
Optimization := CodeGenLevelDefault;