File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
// RUN: %swift -target x86_64-unknown-linux-gnu -emit-module -parse-stdlib -o %t -module-name Empty -module-link-name swiftEmpty %S/../Inputs/empty.swift
4
4
// RUN: %swift -target x86_64-unknown-linux-gnu %s -I %t -parse-stdlib -disable-objc-interop -module-name main -emit-ir -o - | FileCheck %s
5
5
6
+ // REQUIRES: SR2116
6
7
// REQUIRES: X86
7
8
8
9
import Empty
Original file line number Diff line number Diff line change @@ -423,8 +423,8 @@ if platform.system() != 'Windows':
423
423
config .available_features .add ('crash-recovery' )
424
424
425
425
# Add each available build target CPU as a feature.
426
- for target in config .targets_to_build . split () :
427
- config .available_features .add (target )
426
+ for target in config .llvm_code_generators :
427
+ config .available_features .add ("CODEGENERATOR=" + target )
428
428
429
429
# Add the run target CPU, OS, and pointer size as features.
430
430
config .available_features .add ("CPU=" + run_cpu )
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ config.llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
20
20
config .llvm_obj_root = "@LLVM_BINARY_DIR@"
21
21
config .llvm_tools_dir = "@LLVM_TOOLS_DIR@"
22
22
config .llvm_libs_dir = "@LLVM_LIBS_DIR@"
23
+ config .llvm_code_generators = "@LLVM_TARGETS_TO_BUILD@" .split (";" )
23
24
config .lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
24
25
config .swift_src_root = lit_config .params .get ("swift_src_root" , "@SWIFT_SOURCE_DIR@" )
25
26
config .swift_obj_root = "@SWIFT_BINARY_DIR@"
26
27
config .target_triple = "@TARGET_TRIPLE@"
27
- config .targets_to_build = "@TARGETS_TO_BUILD@"
28
28
config .variant_triple = "@VARIANT_TRIPLE@"
29
29
config .variant_sdk = "@VARIANT_SDK@"
30
30
config .variant_suffix = "@VARIANT_SUFFIX@"
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ config.llvm_src_root = "@LLVM_MAIN_SRC_DIR@"
19
19
config .llvm_obj_root = "@LLVM_BINARY_DIR@"
20
20
config .llvm_tools_dir = "@LLVM_TOOLS_DIR@"
21
21
config .llvm_libs_dir = "@LLVM_LIBS_DIR@"
22
+ config .llvm_code_generators = "@LLVM_TARGETS_TO_BUILD@" .split (";" )
22
23
config .lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
23
24
config .swift_src_root = "@SWIFT_SOURCE_DIR@"
24
25
config .swift_obj_root = "@SWIFT_BINARY_DIR@"
25
26
config .target_triple = "@TARGET_TRIPLE@"
26
- config .targets_to_build = "@TARGETS_TO_BUILD@"
27
27
config .variant_triple = "@VARIANT_TRIPLE@"
28
28
config .variant_suffix = "@VARIANT_SUFFIX@"
29
29
config .variant_sdk = "@VARIANT_SDK@"
You can’t perform that action at this time.
0 commit comments