Changeset View
Changeset View
Standalone View
Standalone View
lld/test/MachO/lc-build-version.s
- This file was added.
# REQUIRES: x86 | |||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o | |||||
# RUN: lld -flavor darwinnew -Z -platform_version macos 10.14.1 10.15 -o %t %t.o | |||||
# RUN: llvm-objdump --macho --all-headers %t | FileCheck %s | |||||
# CHECK: Load command {{[0-9]+}} | |||||
# CHECK: cmd LC_BUILD_VERSION | |||||
# CHECK: cmdsize 32 | |||||
# CHECK: platform macos | |||||
# CHECK: sdk 10.15 | |||||
# CHECK: minos 10.14.1 | |||||
# CHECK: ntools 1 | |||||
# CHECK: tool ld | |||||
# CHECK: version {{1[0-9]\.[0-9]}} | |||||
mehdi_amini: This macro is a bit overly restrictive: our version of lld does not start with a leading 1 and… | |||||
# CHECK: Load command {{[0-9]+}} | |||||
Not Done ReplyInline ActionsJFYI, [[#]] will also match any number: https://llvm.org/docs/CommandGuide/FileCheck.html#filecheck-numeric-substitution-blocks int3: JFYI, `[[#]]` will also match any number: https://llvm.org/docs/CommandGuide/FileCheck. | |||||
.text | |||||
.global _main | |||||
_main: | |||||
mov $0, %eax | |||||
ret |
This macro is a bit overly restrictive: our version of lld does not start with a leading 1 and fails this test.
I relaxed it in https://github.com/llvm/llvm-project/commit/22cbe40fa99795766f352c08a7c0748704c9d2d5 for now, if you would like a more specific checks I can propose this instead https://reviews.llvm.org/D86026 ?