File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,24 @@ fn main() {
2727 // Build the slang library
2828 let dst = slang_lib. build ( ) ;
2929
30+ // --- DEBUGGING: Dump library directory contents ---
31+ let lib_dir = dst. join ( "lib" ) ;
32+ println ! (
33+ "cargo:warning=Searching for libraries in: {}" ,
34+ lib_dir. display( )
35+ ) ;
36+ match std:: fs:: read_dir ( & lib_dir) {
37+ Ok ( entries) => {
38+ for entry in entries {
39+ if let Ok ( entry) = entry {
40+ println ! ( "cargo:warning= Found file: {:?}" , entry. file_name( ) ) ;
41+ }
42+ }
43+ }
44+ Err ( e) => println ! ( "cargo:warning= Error reading directory: {}" , e) ,
45+ }
46+ // --------------------------------------------------
47+
3048 // Configure Linker to find Slang static library
3149 println ! ( "cargo:rustc-link-search=native={}/lib" , dst. display( ) ) ;
3250 println ! ( "cargo:rustc-link-lib=static=svlang" ) ;
You can’t perform that action at this time.
0 commit comments