Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | meta-clang passes this option to compiler defaults |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 5 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 6 | --- a/klcc/klcc.in |
| 7 | +++ b/klcc/klcc.in |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame^] | 8 | @@ -207,6 +207,30 @@ while ( defined($a = shift(@ARGV)) ) { |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) { |
| 10 | # Override gcc encoded sysroot |
| 11 | push(@ccopt, $a); |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 12 | + } 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | + } elsif ( $a eq '-no-integrated-as' ) { |
| 25 | + # Allow clang options |
| 26 | + push(@ccopt, $a); |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 27 | + } elsif ( $a =~ '--unwindlib=.*' ) { |
| 28 | + # Allow clang options |
| 29 | + push(@ccopt, $a); |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 30 | + } elsif ( $a =~ '-rtlib=.*' ) { |
| 31 | + # Allow clang options |
| 32 | + push(@ccopt, $a); |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame^] | 33 | + } elsif ( $a =~ '--dyld-prefix=.*' ) { |
| 34 | + # Allow clang options |
| 35 | + push(@ccopt, $a); |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 36 | } else { |
| 37 | die "$0: unknown option: $a\n"; |
| 38 | } |