From 68a321d92fdb69dee6006ad5096e0dbb3d2cae49 Mon Sep 17 00:00:00 2001 From: Goran Jakovljevic Date: Wed, 18 Oct 2017 14:19:46 +0200 Subject: [PATCH] MIPS: Remove -U__unix and -U__unix__ from cflags Leave '__unix' and '__unix__' defined on mips/mips64, like arm. This is needed to avoid a warning in external/libcxx project. Test: successful build and boot aosp_mips-eng Test: successful build and boot aosp_mips64-eng Change-Id: I8f0e17bdbeffd5078c19aa7506564b8e79a9c945 --- cc/config/mips64_device.go | 2 -- cc/config/mips_device.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/cc/config/mips64_device.go b/cc/config/mips64_device.go index 35fa55100..e05dbf182 100644 --- a/cc/config/mips64_device.go +++ b/cc/config/mips64_device.go @@ -28,8 +28,6 @@ var ( "-fomit-frame-pointer", "-fno-strict-aliasing", "-funswitch-loops", - "-U__unix", - "-U__unix__", "-Umips", "-ffunction-sections", "-fdata-sections", diff --git a/cc/config/mips_device.go b/cc/config/mips_device.go index d154426db..78e95b6f2 100644 --- a/cc/config/mips_device.go +++ b/cc/config/mips_device.go @@ -28,8 +28,6 @@ var ( "-fomit-frame-pointer", "-fno-strict-aliasing", "-funswitch-loops", - "-U__unix", - "-U__unix__", "-Umips", "-ffunction-sections", "-fdata-sections",