When updating Pdfium from the current commit, 3ea38438da69868f33aac23ce7d1b3575479fb0a, I ran into an issue which I tracked down to
the "is_official_build" argument when using gn args. If
"is_official_build = true" is included I get the errors at the bottom
of this message. If I exclude that argument the build is successful. I'm on Windows 10 x64 and the arguments used to generate the error were:
If you need any additional information please let me know.
C:\src\repo\pdfium>gn args .
Waiting for editor on "C:\src\repo\pdfium\
args.gn"...
Generating files...
C:/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe: can't open file 'C:/src/repo/pdfium/tools/update_pgo_profiles.py': [Errno 2] No such file or directory
ERROR at //build/config/compiler/pgo/BUILD.gn:51:35: Script returned non-zero exit code.
pgo_data_path = rebase_path(exec_script("//tools/update_pgo_profiles.py",
^----------
Current dir: C:/src/repo/pdfium
Command: C:/src/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe C:/src/repo/pdfium/tools/update_pgo_profiles.py --target win64 get_profile_path
Returned 2.
See //build/config/BUILDCONFIG.gn:439:3: which caused the file to be included.
"//build/config/compiler/pgo:default_pgo_flags",
^----------------------------------------------