[PATCH] D142660: [AIX] supporting -X options for llvm-ranlib in AIX OS
Digger Lin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 27 10:49:14 PDT 2023
DiggerLin updated this revision to Diff 517638.
DiggerLin marked 9 inline comments as done.
DiggerLin added a comment.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
address comment and set option -Xany as invalid option and environment OBJECT-MODE=any as invalid too(let it has same behaviors' as "ranlib" of AIX OS).
-bash-5.0$ export OBJECT_MODE=31
-bash-5.0$ ranlib t_X32.a
0654-603 The OBJECT_MODE environment variable has an invalid setting.
OBJECT_MODE must be 32, 64, or 32_64.
-bash-5.0$ ranlib -X31 t_X32.a
0654-602 The specified object mode is not valid.
Specify -X32, -X64, or -X32_64.
-bash-5.0$ export OBJECT_MODE=any
-bash-5.0$ ranlib t_X32.a
0654-603 The OBJECT_MODE environment variable has an invalid setting.
OBJECT_MODE must be 32, 64, or 32_64.
-bash-5.0$ ranlib -Xany nosym.a
0654-602 The specified object mode is not valid.
Specify -X32, -X64, or -X32_64.
-bash-5.0$ ranlib -X32 t_X32.a
-bash-5.0$
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142660/new/
https://reviews.llvm.org/D142660
Files:
clang/test/lit.cfg.py
llvm/include/llvm/Object/Archive.h
llvm/include/llvm/Object/ArchiveWriter.h
llvm/lib/Object/Archive.cpp
llvm/lib/Object/ArchiveWriter.cpp
llvm/test/tools/llvm-ranlib/aix-X-option.test
llvm/tools/llvm-ar/llvm-ar.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142660.517638.patch
Type: text/x-patch
Size: 17758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230427/6a704d36/attachment-0001.bin>
More information about the cfe-commits
mailing list