mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

This patch adds the option -print-resource-dir. It simply prints the resource directory. This information will eventually be used in compiler-rt to setup COMPILER_RT_LIBRARY_INSTALL_DIR. Patch by Catherine Moore! Differential Revision: https://reviews.llvm.org/D31447 llvm-svn: 299473
20 lines
737 B
C
20 lines
737 B
C
// RUN: %clang --help | FileCheck %s -check-prefix=HELP
|
|
// HELP: isystem
|
|
// HELP-NOT: ast-dump
|
|
// HELP-NOT: driver-mode
|
|
|
|
// RUN: %clang --help-hidden | FileCheck %s -check-prefix=HELP-HIDDEN
|
|
// HELP-HIDDEN: driver-mode
|
|
|
|
// RUN: %clang -dumpversion | FileCheck %s -check-prefix=DUMPVERSION
|
|
// DUMPVERSION: 4.2.1
|
|
|
|
// RUN: %clang -print-search-dirs | FileCheck %s -check-prefix=PRINT-SEARCH-DIRS
|
|
// PRINT-SEARCH-DIRS: programs: ={{.*}}
|
|
// PRINT-SEARCH-DIRS: libraries: ={{.*}}
|
|
|
|
// Test if the -print-resource-dir option is accepted without error.
|
|
// Allow unspecified output because the value of CLANG_RESOURCE_DIR is unknown.
|
|
// RUN: %clang -print-resource-dir | FileCheck %s -check-prefix=PRINT-RESOURCE-DIR
|
|
// PRINT-RESOURCE-DIR: {{.+}}
|