Skip to content

Commit 6759040

Browse files
committed
stem
1 parent e44db82 commit 6759040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/tools/offload-arch/OffloadArch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ int main(int argc, char *argv[]) {
6262
}
6363

6464
// If this was invoked from the legacy symlinks provide the same behavior.
65-
bool AMDGPUOnly = AMDGPU || sys::path::filename(argv[0]) == "amdgpu-arch";
66-
bool NVIDIAOnly = NVPTX || sys::path::filename(argv[0]) == "nvptx-arch";
65+
bool AMDGPUOnly = AMDGPU || sys::path::stem(argv[0]) == "amdgpu-arch";
66+
bool NVIDIAOnly = NVPTX || sys::path::stem(argv[0]) == "nvptx-arch";
6767

6868
int NVIDIAResult = 0;
6969
if (!AMDGPUOnly)

0 commit comments

Comments
 (0)