Eric Astor 3c657ceef9
[ms] [llvm-ml] Add llvm-ml64 alias (#131854)
Rather than requiring users to pass `-m64` to the `llvm-ml` driver to
get 64-bit behavior, we add the `llvm-ml64` alias, matching the behavior
of `ML.EXE` and `ML64.EXE`.

The original flavor/bitness flags still work, but the alias should make
some workflows easier.

NOTE: The logic for this already existed in the code; we're just finally
adding the build/install instructions to match.
2025-03-19 15:02:17 -04:00

25 lines
1.0 KiB
NASM

; RUN: llvm-ml %s /Fo - | llvm-readobj --syms - | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-NOSAFESEH
; RUN: llvm-ml64 %s /Fo - | llvm-readobj --syms - | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-NOSAFESEH
; RUN: llvm-ml -safeseh %s /Fo - | llvm-readobj --syms - | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-SAFESEH
; RUN: llvm-ml64 -safeseh %s /Fo %t.obj 2>&1 | FileCheck %s --check-prefix=CHECK-SAFESEH64
; RUN: llvm-readobj --syms %t.obj | FileCheck %s --check-prefix=CHECK-OBJ --check-prefix=CHECK-OBJ-NOSAFESEH
; CHECK-SAFESEH64: warning: /safeseh applies only to 32-bit X86 platforms; ignoring.
.code
noop:
ret
end
; CHECK-OBJ: Symbol {
; CHECK-OBJ: Name: @feat.00
; CHECK-OBJ-NOSAFESEH: Value: 2
; CHECK-OBJ-SAFESEH: Value: 3
; CHECK-OBJ-NEXT: Section: IMAGE_SYM_ABSOLUTE
; CHECK-OBJ-NEXT: BaseType: Null
; CHECK-OBJ-NEXT: ComplexType: Null
; CHECK-OBJ-NEXT: StorageClass: External
; CHECK-OBJ-NEXT: AuxSymbolCount: 0
; CHECK-OBJ-NEXT: }