Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
18f99ef7
Commit
18f99ef7
authored
7 years ago
by
Sören Tempel
Browse files
Options
Downloads
Patches
Plain Diff
makefiles: always link with gcc even if TOOLCHAIN is set to LLVM
Fixes #8356
parent
490a72ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
makefiles/toolchain/llvm.inc.mk
+7
-4
7 additions, 4 deletions
makefiles/toolchain/llvm.inc.mk
with
7 additions
and
4 deletions
makefiles/toolchain/llvm.inc.mk
+
7
−
4
View file @
18f99ef7
...
...
@@ -9,12 +9,14 @@ endif
export
CC
=
clang
export
CXX
=
clang++
export
CCAS
?=
$(
CC
)
export
LINK
=
$(
CC
)
export
AS
=
$(
LLVMPREFIX
)
as
export
AR
=
$(
LLVMPREFIX
)
ar
export
NM
=
$(
LLVMPREFIX
)
nm
# There is no LLVM linker yet, use GNU binutils.
#export LINKER = $(LLVMPREFIX)ld
# LLVM does have a linker, however, it is not entirely
# compatible with GCC. For instance spec files as used in
# `makefiles/libc/newlib.mk` are not supported. Therefore
# we just use GCC for now.
export
LINK
=
$(
PREFIX
)
gcc
# objcopy does not have a clear substitute in LLVM, use GNU binutils
#export OBJCOPY = $(LLVMPREFIX)objcopy
export
OBJCOPY
?=
$(
shell
command
-v
$(
PREFIX
)
objcopy gobjcopy objcopy |
head
-n
1
)
...
...
@@ -52,7 +54,8 @@ ifneq (,$(TARGET_ARCH))
# Tell clang to cross compile
export
CFLAGS
+=
-target
$(
TARGET_ARCH
)
export
CXXFLAGS
+=
-target
$(
TARGET_ARCH
)
export
LINKFLAGS
+=
-target
$(
TARGET_ARCH
)
# We currently don't use LLVM for linking (see comment above).
#export LINKFLAGS += -target $(TARGET_ARCH)
# Use the wildcard Makefile function to search for existing directories matching
# the patterns above. We use the -isystem gcc/clang argument to add the include
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment