3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 09:04:07 +00:00

add diagnostics to extraction of Microsoft.pdb/xml/dll

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-02-28 13:55:44 -08:00
parent ec93972356
commit cd95c7e72a

View file

@ -77,14 +77,16 @@ def unpack(packages, symbols, arch):
replace(f"{tmp}/{package_dir}/bin/libz3.pdb", f"out/runtimes/{dst}/native/libz3.pdb")
files = ["Microsoft.Z3.dll", "Microsoft.Z3.pdb", "Microsoft.Z3.xml"]
for b in files:
file = f"{package_dir}/bin/{b}"
if os.path.exists(file):
zip_ref.extract(file, f"{tmp}")
file1 = f"{package_dir}/bin/{b}"
file2 = os.path.join(file,"netstandard2.0")
if os.path.exists(file1):
zip_ref.extract(file1, f"{tmp}")
replace(f"{tmp}/{package_dir}/bin/{b}", f"out/lib/netstandard2.0/{b}")
file = os.path.join(file,"netstandard2.0")
if os.path.exists(file):
zip_ref.extract(file, f"{tmp}")
elif os.path.exists(file2):
zip_ref.extract(file2, f"{tmp}")
replace(f"{tmp}/{package_dir}/bin/netstandard2.0/{b}", f"out/lib/netstandard2.0/{b}")
else:
print(f"Could not find file path {file1} nor {file2}")
def mk_targets(source_root):