]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Remove duplication when creating %extension.
[blhc/blhc.git] / bin / blhc
index f2e7295f3c79c34dd65f413fa7a0c09a4644692b..5adfca6c13ea2d28d7e3c43c3a61d43c8530e443 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -129,14 +129,8 @@ my %extensions_compile_cpp = map { $_ => 1 } (
 );
 my %extension = map { $_ => 1 } (
     @source_no_preprocess,
-    @source_no_preprocess_compile,
-    @source_no_preprocess_compile_cpp,
-    @source_no_preprocess_no_compile,
     @header_preprocess,
     @source_preprocess,
-    @source_preprocess_compile,
-    @source_preprocess_compile_cpp,
-    @source_preprocess_no_compile,
 );
 
 # Regexp to match file extensions.
@@ -198,7 +192,7 @@ my @def_ldflags_pic = (
 # Renaming rules for the output so the regex parts are not visible. Also
 # stores string values of flag regexps above, see compile_flag_regexp().
 my %flag_renames = (
-    '-O(?:2|3)'       => '-O2',
+    '-O(?:2|3)'         => '-O2',
     '-Wl,(?:-z,)?relro' => '-Wl,-z,relro',
     '-Wl,(?:-z,)?now'   => '-Wl,-z,now',
 );