File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -413,9 +413,14 @@ def build_rust(
413413 lib = lib / "release"
414414
415415 source_target = target
416+ # Exclusion basically just for Databricks - their crate name is not
417+ # "adbc_driver_databricks" but rather "databricks_adbc"
418+ if target_name := get_var ("TARGET_NAME" , "" ):
419+ source_target = f"lib{ target_name } .{ EXT } "
416420 if platform .system () == "Windows" :
417421 source_target = target .removeprefix ("lib" )
418422 lib = lib / source_target
423+ info ("Copying" , lib , "to" , repo_root / "build" / target )
419424
420425 lib .rename (repo_root / "build" / target )
421426 output = (repo_root / "build" / target ).resolve ()
@@ -565,8 +570,7 @@ def task_build():
565570 elif any (filename .endswith (ext ) for ext in extensions ):
566571 file_deps .append (Path (dirname ) / filename )
567572
568- target_name = get_var ("TARGET_NAME" , f"adbc_driver_{ driver } " )
569- target = f"lib{ target_name } .{ EXT } "
573+ target = f"libadbc_driver_{ driver } .{ EXT } "
570574
571575 if lang == "go" :
572576 actions = [
You can’t perform that action at this time.
0 commit comments