1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-08 22:50: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:
pcpa 2015-05-24 13:50:58 -03:00
parent d6a5a90d5a
commit 97f69a9c9c
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-06-24 Paulo Andrade <pcpa@gnu.org>
* check/lightning.c: Clearly run check if clang is the system
compiler.
2015-06-20 Paulo Andrade <pcpa@gnu.org> 2015-06-20 Paulo Andrade <pcpa@gnu.org>
* lib/jit_sparc-cpu.c, lib/jit_sparc-fpu.c, lib/jit_sparc.c: * lib/jit_sparc-cpu.c, lib/jit_sparc-fpu.c, lib/jit_sparc.c:

View file

@ -4170,7 +4170,12 @@ main(int argc, char *argv[])
strncpy(parser.name, endptr, sizeof(parser.name)); strncpy(parser.name, endptr, sizeof(parser.name));
parser.name[sizeof(parser.name) - 1] = '\0'; 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++) { for (++opt_index; opt_index < argc; opt_index++) {
if (argv[opt_index][0] == '-') if (argv[opt_index][0] == '-')
opt_short += snprintf(cmdline + opt_short, opt_short += snprintf(cmdline + opt_short,