[PATCH] D97979: [lld-macho] Check platform and version while constructing ObjFile and DylibFile
Vy Nguyen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 5 13:42:48 PST 2021
oontvoo added inline comments.
================
Comment at: lld/test/MachO/invalid/incompatible-arch.s:20-23
+# RUN: llvm-as %t/foo.ll -o %t/foo.o
+# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main_x86.o %t/main2.s
+# RUN: not %lld %t/main_x86.o %t/foo.o -arch x86_64 -platform_version macOS 14.0 15.0 -lSystem \
+# RUN: -o /dev/null 2>&1 | FileCheck %s --check-prefix=OBJ_VERSION
----------------
int3 wrote:
> I'm guessing you created a bitcode file in order to specify the platform? You can actually specify it by compiling a regular assembly file via llvm-mc:
>
> llvm-mc -filetype=obj -triple=x86_64-apple-macos14.0
Good to know!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97979/new/
https://reviews.llvm.org/D97979
More information about the llvm-commits
mailing list