Summary: As mentioned in https://reviews.llvm.org/D81326#2093931, I'm not sure it makes sense to use the default target triple to determine -arch. Long-term we should probably detect it from the input object files, but in the meantime it would be nice not to have to add it to all our tests by using a convenient default. Reviewers: #lld-macho Subscribers: arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81983
18 lines
891 B
Plaintext
18 lines
891 B
Plaintext
# RUN: not lld -flavor darwinnew -platform_version 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=MISSING %s
|
|
# RUN: not lld -flavor darwinnew -platform_version macos 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=MISSING %s
|
|
# RUN: not lld -flavor darwinnew -platform_version macos 10.15 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=MISSING %s
|
|
# RUN: not lld -flavor darwinnew -platform_version macos -lfoo 10.15 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=GOOD %s
|
|
# RUN: not lld -flavor darwinnew -platform_version macos 10.15 10.15.4 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=GOOD %s
|
|
# RUN: not lld -flavor darwinnew -platform_version macos 10.15 10.15.4 foobar 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=FAIL_FILE %s
|
|
|
|
MISSING: -platform_version: missing argument
|
|
FAIL: usage: -platform_version platform min_version sdk_version
|
|
GOOD: undefined symbol: _main
|
|
FAIL_FILE: cannot open foobar
|