Skip to content

Commit

Permalink
Add internal_lld Lit-test feature. (#2952)
Browse files Browse the repository at this point in the history
This prevents test failures when LDC is built without internal LLD.
  • Loading branch information
JohanEngelen committed Dec 22, 2018
1 parent 3dc367d commit 34048d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/linking/link_internally.d
@@ -1,4 +1,5 @@
// REQUIRES: Windows
// REQUIRES: internal_lld

// RUN: %ldc -link-internally -run %s

Expand Down
4 changes: 4 additions & 0 deletions tests/lit.site.cfg.in
Expand Up @@ -25,6 +25,7 @@ config.dynamic_compile = @LDC_DYNAMIC_COMPILE@
config.plugins_supported = "@LDC_ENABLE_PLUGINS@" == "ON"
config.gnu_make_bin = "@GNU_MAKE_BIN@"
config.ldc_host_arch = "@LDC_HOST_ARCH@"
config.ldc_with_lld = "@LDC_WITH_LLD@"

config.name = 'LDC'

Expand Down Expand Up @@ -124,6 +125,9 @@ elif (platform.system() == 'Windows'):
if canDoLTO:
config.available_features.add('LTO')

if config.ldc_with_lld:
config.available_features.add('internal_lld')

config.target_triple = '(unused)'

# test_exec_root: The root path where tests should be run.
Expand Down

0 comments on commit 34048d2

Please sign in to comment.