Fix error when cross compilation
This commit is contained in:
parent
b25175a19a
commit
81c23b84e7
2 changed files with 7 additions and 2 deletions
|
@ -245,7 +245,7 @@
|
||||||
}], # OS=="win"
|
}], # OS=="win"
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
['OS=="linux" and _target_name in ["dump_syms", "node"]', {
|
['OS=="linux" and _toolset=="target" and _target_name in ["dump_syms", "node"]', {
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['libchromiumcontent_component==0', {
|
['libchromiumcontent_component==0', {
|
||||||
'libraries': [
|
'libraries': [
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
'OTHER_LDFLAGS': [ '-stdlib=libc++' ],
|
'OTHER_LDFLAGS': [ '-stdlib=libc++' ],
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['OS=="linux"', {
|
['OS=="linux" and _toolset=="target"', {
|
||||||
'cflags_cc': [
|
'cflags_cc': [
|
||||||
'-std=gnu++14',
|
'-std=gnu++14',
|
||||||
'-nostdinc++',
|
'-nostdinc++',
|
||||||
|
@ -140,6 +140,11 @@
|
||||||
'-nostdlib++',
|
'-nostdlib++',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
|
['OS=="linux" and _toolset=="host"', {
|
||||||
|
'cflags_cc': [
|
||||||
|
'-std=gnu++14',
|
||||||
|
],
|
||||||
|
}],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}], # clang==1
|
}], # clang==1
|
||||||
|
|
Loading…
Add table
Reference in a new issue