Skip to content

Commit 69c695d

Browse files
committed
Merge pull request #2697 from gottesmm/disable_static_stdlib_driver_test_when_lto_is_enabled
Disable this test when lto is enabled.
2 parents 122350d + 0940f75 commit 69c695d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/Driver/static-stdlib.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Statically link a "hello world" program
22
// XFAIL: linux
3+
// XFAIL: lto
34
// REQUIRES: static_stdlib
45
print("hello world!")
56
// RUN: rm -rf %t && mkdir %t

test/lit.site.cfg.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ if "@SWIFT_ASAN_BUILD@" == "TRUE":
2626
else:
2727
config.available_features.add('no_asan')
2828

29+
if '@SWIFT_ENABLE_LTO@' == 'TRUE':
30+
config.available_features.add('lto')
31+
else:
32+
config.available_features.add('no_lto')
33+
2934
if "@LLVM_ENABLE_ASSERTIONS@" == "TRUE":
3035
config.available_features.add('asserts')
3136
else:

0 commit comments

Comments
 (0)