Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
contiki-ng
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
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
NATAF Emmanuel
contiki-ng
Commits
d038e90d
Unverified
Commit
d038e90d
authored
3 years ago
by
Joakim Eriksson
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1804 from pjonsson/right-compiler
native: configure according to $(CC)
parents
03f66acb
120be585
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
arch/cpu/native/Makefile.native
+4
-4
4 additions, 4 deletions
arch/cpu/native/Makefile.native
with
4 additions
and
4 deletions
arch/cpu/native/Makefile.native
+
4
−
4
View file @
d038e90d
...
@@ -25,15 +25,15 @@ CFLAGS += $(CFLAGSNO)
...
@@ -25,15 +25,15 @@ CFLAGS += $(CFLAGSNO)
SMALL
?=
0
SMALL
?=
0
# The optimizations on native platform cannot be enabled in GCC (not Clang) versions less than 7.2
# The optimizations on native platform cannot be enabled in GCC (not Clang) versions less than 7.2
GCC_IS_CLANG
:=
$(
shell
gcc
--version
2> /dev/null |
grep
clang
)
GCC_IS_CLANG
:=
$(
shell
$(
CC
)
--version
2> /dev/null |
grep
clang
)
ifneq
($(GCC_IS_CLANG),)
ifneq
($(GCC_IS_CLANG),)
NATIVE_CAN_OPTIIMIZE
=
1
NATIVE_CAN_OPTIIMIZE
=
1
else
else
GCC_VERSION
:=
$(
shell
gcc
-dumpfullversion
-dumpversion
|
cut
-b1-3
)
GCC_VERSION
:=
$(
shell
$(
CC
)
-dumpfullversion
-dumpversion
|
cut
-b1-3
)
ifeq
($(shell expr $(GCC_VERSION) \>= 7.2), 1)
ifeq
($(shell expr $(GCC_VERSION) \>= 7.2), 1)
NATIVE_CAN_OPTIIMIZE
=
1
NATIVE_CAN_OPTIIMIZE
=
1
else
else
NATIVE_CAN_OPTIIMIZE
=
0
NATIVE_CAN_OPTIIMIZE
=
0
endif
endif
endif
endif
...
...
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