aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-12-08 09:17:41 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-12-08 09:17:41 +0100
commitcb93a301fd2ddae3071ae0838290b201496d90ef (patch)
treeb1531d98e7c7e57a2c56e0550cb0e354278f1016 /driver
parent23da7b35d0edf98f271401ac93a1fa06adb062a2 (diff)
parentb40aef6c55b837786cd749260e8e8d8a1d328034 (diff)
downloadcompcert-kvx-cb93a301fd2ddae3071ae0838290b201496d90ef.tar.gz
compcert-kvx-cb93a301fd2ddae3071ae0838290b201496d90ef.zip
Merge github.com:AbsInt/CompCert into kvx-workv3.8_kvx_instructions_fixed
Diffstat (limited to 'driver')
-rw-r--r--driver/Driver.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml
index 7d23c695..089cd423 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -490,6 +490,8 @@ let _ =
fatal_error no_loc "ambiguous '-o' option (multiple source files)";
if !num_input_files = 0 then
fatal_error no_loc "no input file";
+ if not !option_interp && !main_function_name <> "main" then
+ fatal_error no_loc "option '-main' requires option '-interp'";
let linker_args = time "Total compilation time" perform_actions () in
if not (nolink ()) && linker_args <> [] then begin
linker (output_filename_default "a.out") linker_args