mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 #4713.
R=iant, minux.ma
CC=golang-dev
https://golang.org/cl/7323068
This commit is contained in:
parent
428c4cc8d4
commit
6d888f1e1b
8 changed files with 73 additions and 37 deletions
|
|
@ -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;\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue