File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -226,10 +226,7 @@ std::string CUIDOptions::getCUID(StringRef InputFile,
226
226
else if (UseCUID == Kind::Hash) {
227
227
llvm::MD5 Hasher;
228
228
llvm::MD5::MD5Result Hash;
229
- SmallString<256 > RealPath;
230
- llvm::sys::fs::real_path (InputFile, RealPath,
231
- /* expand_tilde=*/ true );
232
- Hasher.update (RealPath);
229
+ Hasher.update (IA->getInputArg ().getValue ());
233
230
for (auto *A : Args) {
234
231
if (A->getOption ().matches (options::OPT_INPUT))
235
232
continue ;
Original file line number Diff line number Diff line change 1
1
// Check CUID generated by hash.
2
2
// The same CUID is generated for the same file with the same options.
3
3
4
+ // RUN: cd %S
5
+
4
6
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
5
7
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
6
- // RUN: %S/ Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
8
+ // RUN: Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
7
9
8
10
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu --no-offload-new-driver \
9
11
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
10
- // RUN: %S/ Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1
12
+ // RUN: Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1
11
13
12
14
// RUN: FileCheck %s -check-prefixes=SAME -input-file %t.out
13
15
16
18
17
19
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=1 --no-offload-new-driver \
18
20
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
19
- // RUN: %S/ Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
21
+ // RUN: Inputs/hip_multiple_inputs/a.cu >%t.out 2>&1
20
22
21
23
// RUN: %clang -### -x hip --target=x86_64-unknown-linux-gnu -DX=2 --no-offload-new-driver \
22
24
// RUN: --offload-arch=gfx906 -c -nogpuinc -nogpulib -fuse-cuid=hash \
23
- // RUN: %S/ Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1
25
+ // RUN: Inputs/../Inputs/hip_multiple_inputs/a.cu >>%t.out 2>&1
24
26
25
27
// RUN: FileCheck %s -check-prefixes=DIFF -input-file %t.out
26
28
You can’t perform that action at this time.
0 commit comments