Skip to content

Commit 4e59eb2

Browse files
Fix depot_tools initialization in linux build script
Explicitly run `ensure_bootstrap` in `linux/build_linux.sh` to ensure `depot_tools` is properly initialized before running `gclient`. This fixes the `python3_bin_reldir.txt not found` error during `gn gen`.
1 parent e31e171 commit 4e59eb2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

linux/build_linux.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export PATH="$PATH:$(pwd)/depot_tools"
3232

3333
output "Initializing depot_tools..."
3434

35+
# Explicitly ensure bootstrap
36+
if [ -f "depot_tools/ensure_bootstrap" ]; then
37+
depot_tools/ensure_bootstrap
38+
fi
39+
3540
gclient || (output "gclient initialization failed!" && exit 1)
3641

3742
output "All tools are installed and initialized"

0 commit comments

Comments
 (0)