| Summary: |
Enable simple toolchain switching |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Ross Burton <ross.burton> |
| Component: |
devtools / tool chain | Assignee: |
Ross Burton <ross.burton> |
| Status: |
RESOLVED
FIXED
|
QA Contact: |
|
| Severity: |
enhancement
|
|
|
| Priority: |
Medium+
|
CC: |
mark.hatle, meta.mr.watcher, meta.watcher, raj.khem, randy.macleod, scott.branden
|
| Version: |
2.4 | |
|
| Target Milestone: |
5.3 M1 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
---
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
| Bug Depends on: |
|
|
|
| Bug Blocks: |
9417
|
|
|
It should be as simple to change toolchain as it is to change libc. There's a few places where gcc is hardcoded such as base.bbclass: BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc" meta-clang defines a TOOLCHAIN variable that can be set to gcc or clang, and changes what compiler is being used. I think this should end up pulling in an include file such as the way TCLIBC is used, and oe-core can provide toolchain-gcc.inc with meta-clang providing toolchain-clang.inc. Hopefully this will let us remove the nasty in clang.bbclass (https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass)