2 # Compiler wrapper with stack-cleaner support (enabled by default).
3 # Usage: ./compiler-wrapper target-compiler args [-f[no-]stack-cleaner]
9 my $compiler = shift(@ARGV);
15 while($arg=shift(@ARGV)) {
16 if ($arg eq "-fno-stack-cleaner") {
18 } elsif ($arg eq "-fstack-cleaner") {
27 if (basename($0) =~ /^clang/) {
28 unshift @args, "-no-integrated-as"
30 unshift @args, dirname($0);