From 2fcf2c81bf31df6330ff0013faf1ad6d991f1aed Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 30 Jan 2018 18:07:19 +0900 Subject: [PATCH] Make sure --sysroot is appended at last --- toolchain.gypi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toolchain.gypi b/toolchain.gypi index 5e291127a2..34d1af9cb8 100644 --- a/toolchain.gypi +++ b/toolchain.gypi @@ -172,7 +172,11 @@ 'target_defaults': { 'target_conditions': [ ['_toolset=="target"', { - 'cflags': [ + # Do not use 'cflags' to make sure sysroot is appended at last. + 'cflags_cc': [ + '--sysroot=<(sysroot)', + ], + 'cflags_c': [ '--sysroot=<(sysroot)', ], 'ldflags': [