aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/sysroot_wrapper/switch_to_bad.sh
diff options
context:
space:
mode:
Diffstat (limited to 'binary_search_tool/sysroot_wrapper/switch_to_bad.sh')
-rwxr-xr-xbinary_search_tool/sysroot_wrapper/switch_to_bad.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/binary_search_tool/sysroot_wrapper/switch_to_bad.sh b/binary_search_tool/sysroot_wrapper/switch_to_bad.sh
new file mode 100755
index 00000000..32f96780
--- /dev/null
+++ b/binary_search_tool/sysroot_wrapper/switch_to_bad.sh
@@ -0,0 +1,9 @@
+#!/bin/bash -u
+
+source common/common.sh
+
+# Remove file, signaling to emerge that it needs to be rebuilt. The compiler
+# wrapper will insert the correct object file based on $BISECT_BAD_SET
+cat $1 | sudo xargs rm -f
+
+exit 0