lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--ChangeLog 5
-rw-r--r--check/lightning.c 7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a17a444..a39ed03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* lib/jit_sparc-cpu.c, lib/jit_sparc-fpu.c, lib/jit_sparc.c:
diff --git a/check/lightning.c b/check/lightning.c
index 02d418a..2422fff 100644
--- a/check/lightning.c
+++ b/check/lightning.c
@@ -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,
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月16日 04:24:55 +0000

AltStyle によって変換されたページ (->オリジナル) /