File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 8888if (EXECUTORCH_BUILD_CUDA)
8989  find_package (CUDAToolkit REQUIRED)
9090  list (APPEND  link_libraries  aoti_cuda)
91-   # Handle both static library and shared library (.dll on Windows MSVC) 
92-   executorch_target_link_options_shared_lib(aoti_cuda)
91+   # CMake will automatically use the import library on Windows 
92+   if (NOT  MSVC )
93+     # Only apply shared lib linking options on non-Windows platforms 
94+     executorch_target_link_options_shared_lib(aoti_cuda)
95+   endif ()
9396endif ()
9497
9598if (EXECUTORCH_BUILD_METAL)
@@ -103,7 +106,7 @@ list(APPEND link_libraries tokenizers::tokenizers)
103106add_executable (voxtral_runner ${_srcs} )
104107if (NOT  CMAKE_BUILD_TYPE  STREQUAL  "Debug" )
105108  target_link_options_gc_sections(voxtral_runner)
106-   if (NOT  APPLE )
109+   if (NOT  APPLE   AND   NOT   MSVC )
107110    target_link_options (voxtral_runner PRIVATE  "LINKER:-s" )
108111  endif ()
109112endif ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments