mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
make: show instructions about installing a C compiler, when the bootstrap compilation with cc fails (#23718)
This commit is contained in:
parent
81a2e7a772
commit
49fb7ca501
5 changed files with 20 additions and 4 deletions
|
@ -98,7 +98,7 @@ endif
|
|||
|
||||
all: latest_vc latest_tcc latest_legacy
|
||||
ifdef WIN32
|
||||
$(CC) $(CFLAGS) -std=c99 -municode -w -o v1.exe $(VC)/$(VCFILE) $(LDFLAGS) -lws2_32
|
||||
$(CC) $(CFLAGS) -std=c99 -municode -w -o v1.exe $(VC)/$(VCFILE) $(LDFLAGS) -lws2_32 || cmd/tools/cc_compilation_failed_windows.sh
|
||||
./v1.exe -no-parallel -o v2.exe $(VFLAGS) cmd/v
|
||||
./v2.exe -o $(VEXE) $(VFLAGS) cmd/v
|
||||
$(RM) v1.exe
|
||||
|
@ -110,7 +110,7 @@ ifdef LEGACY
|
|||
rm -rf $(TMPLEGACY)
|
||||
$(eval override LDFLAGS+=-L$(realpath $(LEGACYLIBS))/lib -lMacportsLegacySupport)
|
||||
endif
|
||||
$(CC) $(CFLAGS) -std=gnu99 -w -o v1.exe $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS)
|
||||
$(CC) $(CFLAGS) -std=gnu99 -w -o v1.exe $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS) || cmd/tools/cc_compilation_failed_non_windows.sh
|
||||
./v1.exe -no-parallel -o v2.exe $(VFLAGS) cmd/v
|
||||
./v2.exe -nocache -o $(VEXE) $(VFLAGS) cmd/v
|
||||
rm -rf v1.exe v2.exe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue