Skip to content

Commit 7e9bbf7

Browse files
committed
Add xcselect test
1 parent 27a5e19 commit 7e9bbf7

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

clang/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ llvm_canonicalize_cmake_booleans(
1010
CLANG_PLUGIN_SUPPORT
1111
CLANG_SPAWN_CC1
1212
CLANG_ENABLE_CIR
13+
CLANG_USE_XCSELECT
1314
ENABLE_BACKTRACES
1415
LLVM_BUILD_EXAMPLES
1516
LLVM_BYE_LINK_INTO_TOOLS

clang/test/Driver/xcselect.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// REQUIRES: xcselect
2+
// RUN: %clang -target arm64-apple-darwin -c -### %s 2> %t.log
3+
// RUN: FileCheck %s <%t.log
4+
5+
// CHECK: "-isysroot" "{{.*}}/SDKs/MacOSX{{([0-9]+(\.[0-9]+)?)?}}.sdk"

clang/test/lit.cfg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ def calculate_arch_features(arch_string):
338338
if config.have_llvm_driver:
339339
config.available_features.add("llvm-driver")
340340

341+
if config.use_xcselect:
342+
config.available_features.add("xcselect")
341343

342344
# Some tests perform deep recursion, which requires a larger pthread stack size
343345
# than the relatively low default of 192 KiB for 64-bit processes on AIX. The

clang/test/lit.site.cfg.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ config.standalone_build = @CLANG_BUILT_STANDALONE@
4444
config.ppc_linux_default_ieeelongdouble = @PPC_LINUX_DEFAULT_IEEELONGDOUBLE@
4545
config.have_llvm_driver = @LLVM_TOOL_LLVM_DRIVER_BUILD@
4646
config.substitutions.append(("%llvm-version-major", "@LLVM_VERSION_MAJOR@"))
47+
config.use_xcselect = @CLANG_USE_XCSELECT@
4748

4849
import lit.llvm
4950
lit.llvm.initialize(lit_config, config)

0 commit comments

Comments
 (0)