mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Bazel: fix codeql_pack installation on Windows
This commit is contained in:
3
.bazelrc
3
.bazelrc
@@ -19,6 +19,9 @@ build:windows --cxxopt=/std:c++20 --cxxopt=/Zc:preprocessor --host_cxxopt=/std:c
|
||||
startup --windows_enable_symlinks
|
||||
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=https://bcr.bazel.build
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ build_file = runfiles.Rlocation(opts.build_file)
|
||||
script = runfiles.Rlocation(opts.script)
|
||||
ripunzip = runfiles.Rlocation(opts.ripunzip)
|
||||
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():
|
||||
shutil.rmtree(destdir)
|
||||
|
||||
Reference in New Issue
Block a user