-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6672 from gebart/pr/ccas
make: Add support for specifying a different compiler for assembler
- Loading branch information
Showing
4 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
export GDBPREFIX ?= $(PREFIX) | ||
export CC = $(PREFIX)gcc | ||
export CXX = $(PREFIX)g++ | ||
export CC = $(PREFIX)gcc | ||
export CXX = $(PREFIX)g++ | ||
export CCAS ?= $(CC) | ||
ifeq ($(LTO),1) | ||
export AR = $(PREFIX)gcc-ar | ||
export AR = $(PREFIX)gcc-ar | ||
else | ||
export AR = $(PREFIX)ar | ||
export AR = $(PREFIX)ar | ||
endif | ||
export AS = $(PREFIX)as | ||
export LINK = $(PREFIX)gcc | ||
export SIZE = $(PREFIX)size | ||
export OBJCOPY = $(shell command -v $(PREFIX)objcopy gobjcopy objcopy | head -n 1) | ||
export AS = $(PREFIX)as | ||
export LINK = $(PREFIX)gcc | ||
export SIZE = $(PREFIX)size | ||
export OBJCOPY ?= $(shell command -v $(PREFIX)objcopy gobjcopy objcopy | head -n 1) | ||
ifeq ($(OBJCOPY),) | ||
$(warning objcopy not found. Hex file will not be created.) | ||
export OBJCOPY = true | ||
export OBJCOPY = true | ||
endif | ||
export OBJDUMP = $(PREFIX)objdump | ||
export DBG = $(GDBPREFIX)gdb | ||
export OBJDUMP = $(PREFIX)objdump | ||
export DBG = $(GDBPREFIX)gdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters