HomePhabricator

Add predefined macro __gnu_linux__ for proper aux-triple

Authored by yaxunl on Aug 29 2018, 1:39 PM.

Description

Add predefined macro gnu_linux for proper aux-triple

Clang predefine macro linx for aux-triple with Linux OS
but does not predefine macro gnu_linux. This causes
some compilation error for certain applications, e.g. Eigen.

This patch fixes that.

Differential Revision: https://reviews.llvm.org/D51441

llvm-svn: 340967