We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecf1968 commit bd2452cCopy full SHA for bd2452c
tools/build.py
@@ -251,6 +251,19 @@ def Main():
251
env = dict(os.environ)
252
env.update(SanitizerEnvironmentVariables())
253
254
+ # macOS's python sets CPATH, LIBRARY_PATH, SDKROOT implicitly.
255
+ #
256
+ # See:
257
258
+ # * https://openradar.appspot.com/radar?id=5608755232243712
259
+ # * https://github.com/dart-lang/sdk/issues/52411
260
261
+ # Remove these environment variables to avoid affecting clang's behaviors.
262
+ if sys.platform == 'darwin':
263
+ env.pop('CPATH', None)
264
+ env.pop('LIBRARY_PATH', None)
265
+ env.pop('SDKROOT', None)
266
+
267
# Always run GN before building.
268
gn_py.RunGnOnConfiguredConfigurations(options)
269
0 commit comments