Attempt to fix Windows bots.
authorRui Ueyama <ruiu@google.com>
Mon, 2 May 2016 18:16:14 +0000 (18:16 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 2 May 2016 18:16:14 +0000 (18:16 +0000)
llvm-svn: 268275

lld/ELF/DriverUtils.cpp
lld/test/ELF/reproduce.s

index bbcaacc..763dda5 100644 (file)
@@ -100,7 +100,7 @@ static std::string relativeToRoot(StringRef Path) {
   // (e.g. "c:") or a UNC name (//net). We want to keep it as part
   // of the result.
   SmallString<128> Res;
-  StringRef Root = path::root_name(Path);
+  StringRef Root = path::root_name(Abs);
   if (Root.endswith(":"))
     Res = Root.drop_back();
   else if (Root.startswith("//"))
index b3014a7..33c3353 100644 (file)
@@ -9,8 +9,8 @@
 
 # RUN: FileCheck %s --check-prefix=RSP < repro/response.txt
 # RSP: {{^}}--hash-style gnu{{$}}
-# RSP-NOT: repro/
-# RSP-NEXT: /foo.o
+# RSP-NOT: repro{{[/\\]}}
+# RSP-NEXT: {{[/\\]}}foo.o
 # RSP-NEXT: -o bar
 # RSP-NEXT: -shared
 # RSP-NEXT: --as-needed