mirror of
				https://github.com/Z3Prover/z3
				synced 2025-10-31 03:32:28 +00:00 
			
		
		
		
	add diagnostics to extraction of Microsoft.pdb/xml/dll
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
		
							parent
							
								
									ec93972356
								
							
						
					
					
						commit
						cd95c7e72a
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		|  | @ -77,14 +77,16 @@ def unpack(packages, symbols, arch): | ||||||
|                     replace(f"{tmp}/{package_dir}/bin/libz3.pdb", f"out/runtimes/{dst}/native/libz3.pdb")  |                     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"]                 |                 files = ["Microsoft.Z3.dll", "Microsoft.Z3.pdb", "Microsoft.Z3.xml"]                 | ||||||
|                 for b in files: |                 for b in files: | ||||||
|                     file = f"{package_dir}/bin/{b}" |                     file1 = f"{package_dir}/bin/{b}" | ||||||
|                     if os.path.exists(file): |                     file2 = os.path.join(file,"netstandard2.0") | ||||||
|                         zip_ref.extract(file, f"{tmp}") |                     if os.path.exists(file1): | ||||||
|  |                         zip_ref.extract(file1, f"{tmp}") | ||||||
|                         replace(f"{tmp}/{package_dir}/bin/{b}", f"out/lib/netstandard2.0/{b}") |                         replace(f"{tmp}/{package_dir}/bin/{b}", f"out/lib/netstandard2.0/{b}") | ||||||
|                     file = os.path.join(file,"netstandard2.0") |                     elif os.path.exists(file2): | ||||||
|                     if os.path.exists(file): |                         zip_ref.extract(file2, f"{tmp}") | ||||||
|                         zip_ref.extract(file, f"{tmp}") |  | ||||||
|                         replace(f"{tmp}/{package_dir}/bin/netstandard2.0/{b}", f"out/lib/netstandard2.0/{b}") |                         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): | def mk_targets(source_root): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue