|
97 | 97 | }, |
98 | 98 | 'conditions': [ |
99 | 99 | ['sysroot!=""', { |
| 100 | + 'variables': { |
| 101 | + 'gcc_include%': '<!(${CXX:-g++} -print-file-name=include)', |
| 102 | + }, |
100 | 103 | 'conditions': [ |
101 | 104 | ['target_arch=="x64"', { |
102 | 105 | 'cflags': [ |
103 | 106 | '--sysroot=<(sysroot)', |
| 107 | + '-nostdinc', |
| 108 | + '-isystem<(gcc_include)', |
| 109 | + '-isystem<(sysroot)/usr/include', |
| 110 | + '-isystem<(sysroot)/usr/include/x86_64-linux-gnu' |
| 111 | + ], |
| 112 | + 'cflags_cc': [ |
104 | 113 | '-nostdinc++', |
105 | | - '-isystem<(sysroot)/usr/include/c++/10', |
106 | | - '-isystem<(sysroot)/usr/include/x86_64-linux-gnu/c++/10', |
107 | | - '-isystem<(sysroot)/usr/include/c++/10/backward' |
| 114 | + '-isystem<(sysroot)/../include/c++/10.5.0', |
| 115 | + '-isystem<(sysroot)/../include/c++/10.5.0/x86_64-linux-gnu', |
| 116 | + '-isystem<(sysroot)/../include/c++/10.5.0/backward' |
108 | 117 | ], |
109 | 118 | 'ldflags': ['--sysroot=<(sysroot)'], |
110 | 119 | }], |
111 | 120 | ['target_arch=="arm64"', { |
112 | 121 | 'cflags': [ |
113 | 122 | '--sysroot=<(sysroot)', |
| 123 | + '-nostdinc', |
| 124 | + '-isystem<(gcc_include)', |
| 125 | + '-isystem<(sysroot)/usr/include', |
| 126 | + '-isystem<(sysroot)/usr/include/aarch64-linux-gnu' |
| 127 | + ], |
| 128 | + 'cflags_cc': [ |
114 | 129 | '-nostdinc++', |
115 | | - '-isystem<(sysroot)/usr/include/c++/10', |
116 | | - '-isystem<(sysroot)/usr/include/aarch64-linux-gnu/c++/10', |
117 | | - '-isystem<(sysroot)/usr/include/c++/10/backward' |
| 130 | + '-isystem<(sysroot)/../include/c++/10.5.0', |
| 131 | + '-isystem<(sysroot)/../include/c++/10.5.0/aarch64-linux-gnu', |
| 132 | + '-isystem<(sysroot)/../include/c++/10.5.0/backward' |
118 | 133 | ], |
119 | 134 | 'ldflags': ['--sysroot=<(sysroot)'], |
120 | 135 | }] |
|
0 commit comments