Skip to content

Commit

Permalink
[clang] Fix name conflict with sys/mac.h on AIX (#88644)
Browse files Browse the repository at this point in the history
Fixes clang-ppc64-aix bot failure after #88559
(0a6f6df)
https://lab.llvm.org/buildbot/#/builders/214/builds/11887

---------

Co-authored-by: Joseph Huber <huberjn@outlook.com>
  • Loading branch information
Endilll and jhuber6 committed Apr 14, 2024
1 parent 3c4d955 commit 7cfe736
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/include/clang/Basic/Cuda.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ const char *CudaVersionToString(CudaVersion V);
// Input is "Major.Minor"
CudaVersion CudaStringToVersion(const llvm::Twine &S);

// We have a name conflict with sys/mac.h on AIX
#ifdef SM_32
#undef SM_32
#endif
enum class CudaArch {
UNUSED,
UNKNOWN,
Expand Down

0 comments on commit 7cfe736

Please sign in to comment.