diff options
author | Russ Cox <rsc@golang.org> | 2013-02-15 13:37:43 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2013-02-15 13:37:43 -0800 |
commit | ed24fa882008150da6bc9f92ea9d1e2548612808 (patch) | |
tree | 6abff5a6b152836398a4d6d08bd863edda030861 /include | |
parent | 913ee5322724ceaa53ac050b3f8daeec706eb9f8 (diff) | |
download | go-ed24fa882008150da6bc9f92ea9d1e2548612808.tar.gz |
build: clang support
This works with at least one version of clang
that existed at one moment in time.
No guarantees about clangs past or future.
To try:
CC=clang all.bash
It does not work with the Xcode clang,
because that clang fails at printing a useful answer
to:
clang -print-libgcc-file-name
The clang that works prints a full path name for
that command, not just "libgcc.a".
Fixes issue 4713.
R=iant, minux.ma
CC=golang-dev
https://codereview.appspot.com/7323068
Diffstat (limited to 'include')
-rw-r--r-- | include/libc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libc.h b/include/libc.h index 9486b1143..1440209e3 100644 --- a/include/libc.h +++ b/include/libc.h @@ -374,7 +374,7 @@ extern char* unsharp(char*); /* command line */ extern char *argv0; extern void __fixargv0(void); -#define ARGBEGIN for((argv0?0:(argv0=(__fixargv0(),*argv))),argv++,argc--;\ +#define ARGBEGIN for((void)(argv0?0:(argv0=(__fixargv0(),*argv))),argv++,argc--;\ argv[0] && argv[0][0]=='-' && argv[0][1];\ argc--, argv++) {\ char *_args, *_argt;\ |