Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/program-path-priority.c
Show All 15 Lines | |||||
/// Note: All matches are expected to be at the end of file paths. | /// Note: All matches are expected to be at the end of file paths. | ||||
/// So we match " on the end to account for build systems that | /// So we match " on the end to account for build systems that | ||||
/// put the name of the compiler in the build path. | /// put the name of the compiler in the build path. | ||||
/// E.g. /build/gcc_X.Y.Z/0/... | /// E.g. /build/gcc_X.Y.Z/0/... | ||||
/// Symlink clang to a new dir which will be its | /// Symlink clang to a new dir which will be its | ||||
/// "program path" for these tests | /// "program path" for these tests | ||||
// RUN: rm -rf %t && mkdir -p %t | // RUN: rm -rf %t && mkdir -p %t | ||||
// RUN: ln -s %clang %t/clang | // RUN: ln -s %clang_bin %t/clang | ||||
/// No gccs at all, nothing is found | /// No gccs at all, nothing is found | ||||
// RUN: env "PATH=" %t/clang -### -target notreal-none-elf %s 2>&1 | \ | // RUN: env "PATH=" %t/clang -### -target notreal-none-elf %s 2>&1 | \ | ||||
// RUN: FileCheck --check-prefix=NO_NOTREAL_GCC %s | // RUN: FileCheck --check-prefix=NO_NOTREAL_GCC %s | ||||
// NO_NOTREAL_GCC-NOT: notreal-none-elf-gcc" | // NO_NOTREAL_GCC-NOT: notreal-none-elf-gcc" | ||||
/// Some systems will have "gcc-x.y.z" so for this first check | /// Some systems will have "gcc-x.y.z" so for this first check | ||||
/// make sure we don't find "gcc" or "gcc-x.y.z". If we do find either | /// make sure we don't find "gcc" or "gcc-x.y.z". If we do find either | ||||
/// then there is no point continuing as this copy of clang is not | /// then there is no point continuing as this copy of clang is not | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |