[all-commits] [llvm/llvm-project] 3b39fa: [AIX] Define __HOS_AIX__ macro only for AIX target
Jake Egan via All-commits
all-commits at lists.llvm.org
Tue Aug 10 10:03:40 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3b39fa3e2815538187ed8928549a9f27c6a71ef6
https://github.com/llvm/llvm-project/commit/3b39fa3e2815538187ed8928549a9f27c6a71ef6
Author: Jake Egan <Jake.Egan at ibm.com>
Date: 2021-08-10 (Tue, 10 Aug 2021)
Changed paths:
M clang/lib/Basic/Targets/OSTargets.h
M clang/lib/Basic/Targets/PPC.cpp
R clang/test/Preprocessor/host-aix.c
M clang/test/Preprocessor/init-ppc.c
R clang/test/Preprocessor/not-host-aix.c
Log Message:
-----------
[AIX] Define __HOS_AIX__ macro only for AIX target
%%%
This patch defines the macro __HOS_AIX__ when the target is AIX and without any dependency on the host. The macro indicates that the host is AIX. Defining the macro will help minimize porting pain for existing code compiled with xlc/xlC. xlC never shipped cross-compiling support, so the difference is not observable anyway.
%%%
This is a follow up to the discussion in https://reviews.llvm.org/D107242.
Reviewed By: cebowleratibm, joerg
Differential Revision: https://reviews.llvm.org/D107825
More information about the All-commits
mailing list