diff options
author | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-07-20 13:20:19 +0200 |
---|---|---|
committer | Bernhard Schommer <bernhardschommer@gmail.com> | 2016-07-20 13:20:19 +0200 |
commit | f22c32dcda0e8b546e85e8ad95d0ad655e365d38 (patch) | |
tree | 4a6c997c3a0692d10beed8d8b59488c962189148 /driver/Configuration.ml | |
parent | 2129fe8f2e19c4dd91955e5300e76d924e0a3e6d (diff) | |
download | compcert-kvx-f22c32dcda0e8b546e85e8ad95d0ad655e365d38.tar.gz compcert-kvx-f22c32dcda0e8b546e85e8ad95d0ad655e365d38.zip |
Added simplified reader and printer for gnu @files
The functions expandargv and writeargv resemble the functions from
the libiberity that are used by the gnu tools. Additionaly a new
configuration is added in order to determine which kind of response
files are supported for calls to other tools.
Bug 18308
Diffstat (limited to 'driver/Configuration.ml')
-rw-r--r-- | driver/Configuration.ml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/driver/Configuration.ml b/driver/Configuration.ml index e1a02573..be581e14 100644 --- a/driver/Configuration.ml +++ b/driver/Configuration.ml @@ -171,3 +171,13 @@ let struct_return_style = | "int1-8" -> SR_int1to8 | "ref" -> SR_ref | v -> bad_config "struct_return_style" [v] + +type response_file_style = + | Gnu (* responsefiles in gnu compatible syntax *) + | Unsupported (* responsefiles are not supported *) + +let response_file_style = + match get_config_string "response_file_style" with + | "unsupported" -> Unsupported + | "gnu" -> Gnu + | v -> bad_config "response_file_style" [v] |