summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/tests/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/tsan/tests/rtl')
-rw-r--r--compiler-rt/lib/tsan/tests/rtl/tsan_test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc b/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
index 2184284d39c..b8b9555c2bf 100644
--- a/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
+++ b/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
@@ -45,6 +45,9 @@ int run_tests(int argc, char **argv) {
return res;
}
+const char *argv0;
+
int main(int argc, char **argv) {
+ argv0 = argv[0];
return run_tests(argc, argv);
}
OpenPOWER on IntegriCloud