mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
Former RUN line does not make sense on Win32 hosts.
Win32 hosts would not be expected to set appropriate $PWD.
Latter RUN line might be made valid if PathV2::is_absolute("/foo") would be true. Unfortunately, "/foo" should not be treated as absolute path on Win32.
FYI, on mingw32 with MSYS bash (it has 'shell' feature);
Former) $PWD is set as "X:/hogehoge/test/Driver"
Latter) PWD=/foo sets "X:/root/to/msys/foo" to $PWD.
llvm-svn: 142721
12 lines
484 B
C
12 lines
484 B
C
// RUN: cd %S && %clang -### -g %s -c 2>&1 | FileCheck -check-prefix=CHECK-PWD %s
|
|
// CHECK-PWD: {{"-fdebug-compilation-dir" ".*Driver.*"}}
|
|
|
|
// RUN: env PWD=/foo %clang -### -g %s -c 2>&1 | FileCheck -check-prefix=CHECK-FOO %s
|
|
// CHECK-FOO: {{"-fdebug-compilation-dir" ".*foo"}}
|
|
|
|
// "PWD=/foo gcc" wouldn't necessarily work. You would need to pick a different
|
|
// path to the same directory (try a symlink).
|
|
|
|
// This depends on host's behavior how $PWD would be set.
|
|
// REQUIRES: shell
|