Fix error when cross compilation

This commit is contained in:
Cheng Zhao 2018-01-31 17:13:59 +09:00
parent b25175a19a
commit 81c23b84e7
2 changed files with 7 additions and 2 deletions

View file

@ -245,7 +245,7 @@
}], # OS=="win"
],
}],
['OS=="linux" and _target_name in ["dump_syms", "node"]', {
['OS=="linux" and _toolset=="target" and _target_name in ["dump_syms", "node"]', {
'conditions': [
['libchromiumcontent_component==0', {
'libraries': [

View file

@ -129,7 +129,7 @@
'OTHER_LDFLAGS': [ '-stdlib=libc++' ],
},
}],
['OS=="linux"', {
['OS=="linux" and _toolset=="target"', {
'cflags_cc': [
'-std=gnu++14',
'-nostdinc++',
@ -140,6 +140,11 @@
'-nostdlib++',
],
}],
['OS=="linux" and _toolset=="host"', {
'cflags_cc': [
'-std=gnu++14',
],
}],
],
},
}], # clang==1