diff --git a/build/gn_run_binary.py b/build/gn_run_binary.py index 9b3c32d32d1..99cd20c2887 100755 --- a/build/gn_run_binary.py +++ b/build/gn_run_binary.py @@ -45,12 +45,9 @@ def main(argv): return 1 # Unless the path is absolute, this script is designed to run binaries - # produced by the current build. We always prefix it with "./" to avoid - # picking up system versions that might also be on the path. - if os.path.isabs(argv[2]): - path = argv[2] - else: - path = './' + argv[2] + # produced by the current build, which is the current working directory when + # this script is run. + path = os.path.abspath(argv[2]) if not os.path.isfile(path): print("Binary not found: " + path) diff --git a/utils/application_snapshot.gni b/utils/application_snapshot.gni index 6a2efbb80ec..9c4cd3fbceb 100644 --- a/utils/application_snapshot.gni +++ b/utils/application_snapshot.gni @@ -148,7 +148,7 @@ template("_application_snapshot") { # Explicitly set DFE so Dart doesn't implicitly depend on the kernel service # snapshot (creating a circular dep. for kernel-service_snapshot). - dfe = "NEVER LOADED" + dfe = "NEVER_LOADED" abs_depfile = rebase_path(depfile) abs_output = rebase_path(output)