[PATCH] D107242: [AIX] Define __HOS_AIX__ macro

Chris Bowler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 5 20:29:20 PDT 2021


cebowleratibm added inline comments.


================
Comment at: clang/test/Preprocessor/not-host-aix.c:2
+// UNSUPPORTED: system-aix
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC-LINUX %s
+// PPC-LINUX-NOT:#define __HOS_AIX__ 1
----------------
this should specify an aix triple.  The test doesn't run on an aix host and any other host should not define the macro even with an aix target.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107242/new/

https://reviews.llvm.org/D107242



More information about the cfe-commits mailing list