blob: a3a069563782a531adb2fca623fdb61e9e799ac8 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001meta-clang passes this option to compiler defaults
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
Brad Bishop26bdd442019-08-16 17:08:17 -04006--- a/klcc/klcc.in
7+++ b/klcc/klcc.in
Patrick Williams03907ee2022-05-01 06:28:52 -05008@@ -207,6 +207,30 @@ while ( defined($a = shift(@ARGV)) ) {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009 } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
10 # Override gcc encoded sysroot
11 push(@ccopt, $a);
Andrew Geisslerac970dd2021-02-12 15:32:45 -060012+ } elsif ( $a eq '-nostartfiles' ) {
13+ # Allow clang options
14+ push(@ccopt, $a);
15+ } elsif ( $a eq '-nostdlib' ) {
16+ # Allow clang options
17+ push(@ccopt, $a);
18+ } elsif ( $a eq '-nodefaultlibs' ) {
19+ # Allow clang options
20+ push(@ccopt, $a);
21+ } elsif ( $a eq '-no-pie' ) {
22+ # Allow clang options
23+ push(@ccopt, $a);
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024+ } elsif ( $a eq '-no-integrated-as' ) {
25+ # Allow clang options
26+ push(@ccopt, $a);
Brad Bishop26bdd442019-08-16 17:08:17 -040027+ } elsif ( $a =~ '--unwindlib=.*' ) {
28+ # Allow clang options
29+ push(@ccopt, $a);
Andrew Geissler69721092021-07-23 12:57:00 -040030+ } elsif ( $a =~ '-rtlib=.*' ) {
31+ # Allow clang options
32+ push(@ccopt, $a);
Patrick Williams03907ee2022-05-01 06:28:52 -050033+ } elsif ( $a =~ '--dyld-prefix=.*' ) {
34+ # Allow clang options
35+ push(@ccopt, $a);
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080036 } else {
37 die "$0: unknown option: $a\n";
38 }