Make sure --sysroot is appended at last

This commit is contained in:
Cheng Zhao 2018-01-30 18:07:19 +09:00
parent 9fec1a3cb4
commit 2fcf2c81bf

View file

@ -172,7 +172,11 @@
'target_defaults': { 'target_defaults': {
'target_conditions': [ 'target_conditions': [
['_toolset=="target"', { ['_toolset=="target"', {
'cflags': [ # Do not use 'cflags' to make sure sysroot is appended at last.
'cflags_cc': [
'--sysroot=<(sysroot)',
],
'cflags_c': [
'--sysroot=<(sysroot)', '--sysroot=<(sysroot)',
], ],
'ldflags': [ 'ldflags': [