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