mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
klcc-cross: Recognise --unwindlib clang option
Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
This commit is contained in:
@@ -3,16 +3,17 @@ meta-clang passes this option to compiler defaults
|
|||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
|
||||||
Index: git/klcc/klcc.in
|
--- a/klcc/klcc.in
|
||||||
===================================================================
|
+++ b/klcc/klcc.in
|
||||||
--- git.orig/klcc/klcc.in
|
@@ -207,6 +207,12 @@ while ( defined($a = shift(@ARGV)) ) {
|
||||||
+++ git/klcc/klcc.in
|
|
||||||
@@ -207,6 +207,9 @@ while ( defined($a = shift(@ARGV)) ) {
|
|
||||||
} elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
|
} elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
|
||||||
# Override gcc encoded sysroot
|
# Override gcc encoded sysroot
|
||||||
push(@ccopt, $a);
|
push(@ccopt, $a);
|
||||||
+ } elsif ( $a eq '-no-integrated-as' ) {
|
+ } elsif ( $a eq '-no-integrated-as' ) {
|
||||||
+ # Allow clang options
|
+ # Allow clang options
|
||||||
|
+ push(@ccopt, $a);
|
||||||
|
+ } elsif ( $a =~ '--unwindlib=.*' ) {
|
||||||
|
+ # Allow clang options
|
||||||
+ push(@ccopt, $a);
|
+ push(@ccopt, $a);
|
||||||
} else {
|
} else {
|
||||||
die "$0: unknown option: $a\n";
|
die "$0: unknown option: $a\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user