mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-08 20:32:27 +02:00
Correct make check for systems without gcc.
* check/lightning.c: Clearly run check if clang is the system compiler.
This commit is contained in:
parent
d6a5a90d5a
commit
97f69a9c9c
2 changed files with 11 additions and 1 deletions
|
@ -4170,7 +4170,12 @@ main(int argc, char *argv[])
|
|||
strncpy(parser.name, endptr, sizeof(parser.name));
|
||||
parser.name[sizeof(parser.name) - 1] = '\0';
|
||||
}
|
||||
opt_short = snprintf(cmdline, sizeof(cmdline), "gcc -E -x c %s", argv[opt_index]);
|
||||
#if __clang__
|
||||
# define cc "clang"
|
||||
#else
|
||||
# define cc "gcc"
|
||||
#endif
|
||||
opt_short = snprintf(cmdline, sizeof(cmdline), cc " -E -x c %s", argv[opt_index]);
|
||||
for (++opt_index; opt_index < argc; opt_index++) {
|
||||
if (argv[opt_index][0] == '-')
|
||||
opt_short += snprintf(cmdline + opt_short,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue