Allow custom toolchains - #32
Closed
BobBeckett wants to merge 2 commits into
Closed
Conversation
gnu ld does not support "--icf" flags. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
allow the user to specify target_triplet and target_extra_cflags to enable them to use their own custom compiler. This is especially useful for cross compiling using SDK outputs from build systems like yocto, which often have custom toolchain prefixes. Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
BobBeckett
force-pushed
the
custom-toolchain
branch
from
June 4, 2020 17:02
8cd2051 to
445fcda
Compare
Member
|
We don't take pull requests from github but are happy to take these sort of changes through AOSP Gerrit. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A couple of changes used to build via a custom toolchain and sysroot.
With these changes, I was able to build for arm 32bit Linux with args.gn like:
target_os = "linux" target_cpu = "arm" is_debug = false is_clang = false target_sysroot = "/opt/PROJECT-sdk/sysroots/armv7ahf-neon-PROJECT-linux-gnueabi" target_triplet = "arm-PROJECT-linux-gnueabi" target_extra_cflags = "-mfloat-abi=hard"