-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support clang #9
Conversation
Makefile.clang
Outdated
# TARGET := riscv64-unknown-linux-gnu | ||
# CC := $(TARGET)-gcc | ||
# LD := $(TARGET)-gcc | ||
# OBJCOPY := $(TARGET)-objcopy | ||
# AR := $(TARGET)-ar | ||
# RANLIB := $(TARGET)-ranlib | ||
# GCC_CFLAGS := -nostartfiles -Wno-nonnull-compare -Wno-dangling-pointer -Wno-stringop-overflow | ||
# LDFLAGS := -static -Wl,--gc-sections | ||
# AUTH_DYN_LIST := -Wl,--dynamic-list c/auth.syms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these.
# LDFLAGS := -static -Wl,--gc-sections | ||
# AUTH_DYN_LIST := -Wl,--dynamic-list c/auth.syms | ||
|
||
CC := clang-16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ?=
instead of :=
. Give a chance to set CC
from environment.
Makefile
Outdated
@@ -3,6 +3,7 @@ CC := $(TARGET)-gcc | |||
LD := $(TARGET)-gcc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't update this file.
Makefile.clang
Outdated
make -C deps/mbedtls/library clean | ||
make -C deps/libecc clean | ||
|
||
.PHONY: all all-via-docker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all-via-docker is not used.
examples/auth-demo/Makefile.clang
Outdated
# TARGET := riscv64-unknown-linux-gnu | ||
# CC := $(TARGET)-gcc | ||
# LD := $(TARGET)-gcc | ||
# OBJCOPY := $(TARGET)-objcopy | ||
# AR := $(TARGET)-ar | ||
# RANLIB := $(TARGET)-ranlib | ||
# GCC_CFLAGS := -nostartfiles \ | ||
# -Wno-nonnull-compare \ | ||
# -Wno-dangling-pointer \ | ||
# -Wno-stringop-overflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these.
* Remove the section about gcc
Support clang by Makefile.clang