diff options
| -rw-r--r-- | lld/test/ELF/reproduce-win32.s | 12 | ||||
| -rw-r--r-- | lld/test/lit.cfg | 4 | 
2 files changed, 16 insertions, 0 deletions
diff --git a/lld/test/ELF/reproduce-win32.s b/lld/test/ELF/reproduce-win32.s new file mode 100644 index 00000000000..25d55df63bd --- /dev/null +++ b/lld/test/ELF/reproduce-win32.s @@ -0,0 +1,12 @@ +# REQUIRES: x86, system-windows + +# RUN: rm -rf %t.dir +# RUN: mkdir -p %t.dir/build +# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.dir/build/foo.o +# RUN: cd %t.dir +# RUN: ld.lld --hash-style=gnu build/foo.o -o bar --reproduce repro +# RUN: cpio -t < repro.cpio | grep -F 'repro\%:t.dir\build\foo.o' - + +.globl _start +_start: +  ret diff --git a/lld/test/lit.cfg b/lld/test/lit.cfg index 5a994e13045..a8943bd0d30 100644 --- a/lld/test/lit.cfg +++ b/lld/test/lit.cfg @@ -195,6 +195,10 @@ if execute_external:  if platform.system() in ['Darwin']:      config.available_features.add('system-linker-mach-o') +# Running on Windows +if platform.system() in ['Windows'] and re.match(r'.*-win32$', config.target_triple): +    config.available_features.add('system-windows') +  # Running on ELF based *nix  if platform.system() in ['FreeBSD', 'Linux']:      config.available_features.add('system-linker-elf')  | 

