You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check to see if Bazel has an (approximately) fresh cache of the included headers, and if so, use them to avoid a slow preprocessing step.
243
243
ifaction_keyin_get_bazel_cached_action_keys(): # Safe because Bazel only holds one cached action key per path, and the key contains the path.
244
-
fori, arginenumerate(compile_args):
244
+
fori, arginenumerate(compile_action.arguments):
245
245
ifarg.startswith('-MF'):
246
246
iflen(arg) >3: # Either appended, like -MF<file>
247
247
dep_file_path=arg[:3]
248
248
else: # Or after as a separate arg, like -MF <file>
249
-
dep_file_path=compile_args[i+1]
249
+
dep_file_path=compile_action.arguments[i+1]
250
250
ifos.path.isfile(dep_file_path):
251
251
dep_file_last_modified=os.path.getmtime(dep_file_path) # Do before opening just as a basic hedge against concurrent write, even though we won't handle the concurrent delete case perfectly.
# Relies on our having made the workspace directory simulate a complete version of the execroot with //external junction
418
419
419
-
header_cmd=list(compile_args) + [
420
+
header_cmd=list(compile_action.arguments) + [
420
421
'/showIncludes', # Print included headers to stderr. https://docs.microsoft.com/en-us/cpp/build/reference/showincludes-list-include-files
421
422
'/EP', # Preprocess (only, no compilation for speed), writing to stdout where we can easily ignore it instead of a file. https://docs.microsoft.com/en-us/cpp/build/reference/ep-preprocess-to-stdout-without-hash-line-directives
0 commit comments