Bazel: fix codeql_pack installation on Windows

This commit is contained in:
Paolo Tranquilli
2024-05-27 16:09:42 +02:00
parent 6bbad22672
commit 2f53c0e640
2 changed files with 4 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor --host_cxxopt=/std:c
startup --windows_enable_symlinks startup --windows_enable_symlinks
common --enable_runfiles common --enable_runfiles
# with the above, we can avoid building python zips which is the default on windows as that's expensive
build --nobuild_python_zip
common --registry=file:///%workspace%/misc/bazel/registry common --registry=file:///%workspace%/misc/bazel/registry
common --registry=https://bcr.bazel.build common --registry=https://bcr.bazel.build

View File

@@ -19,7 +19,7 @@ build_file = runfiles.Rlocation(opts.build_file)
script = runfiles.Rlocation(opts.script) script = runfiles.Rlocation(opts.script)
ripunzip = runfiles.Rlocation(opts.ripunzip) ripunzip = runfiles.Rlocation(opts.ripunzip)
zip_manifests = [runfiles.Rlocation(z) for z in opts.zip_manifests] zip_manifests = [runfiles.Rlocation(z) for z in opts.zip_manifests]
destdir = pathlib.Path(build_file).parent / opts.destdir destdir = pathlib.Path(build_file).resolve().parent / opts.destdir
if destdir.exists(): if destdir.exists():
shutil.rmtree(destdir) shutil.rmtree(destdir)