File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,17 @@ target_include_directories(
2424
2525# Compile options 
2626target_compile_options (
27-   selective_build PUBLIC  -Wno-deprecated-declarations -fPIC -frtti -fexceptions
27+   selective_build
28+   PUBLIC  -Wno-deprecated-declarations
29+          -fPIC
30+          -frtti
31+          -fexceptions
32+          -Werror
33+          -Wunused-variable 
34+          -Wno-unknown-argument
2835)
36+ # We suppress -Wno-unknown-argument because our build system passes -fPIC for 
37+ # Unix builds, but we also build on Windows where it's ignored 
2938
3039# Link against required libraries 
3140target_link_libraries (selective_build PRIVATE  executorch_core program_schema)
Original file line number Diff line number Diff line change 183183if  [[ $1  ==  " cmake" ; 
184184then 
185185    cmake_install_executorch_lib $CMAKE_BUILD_TYPE 
186+ 
187+     #  Build selective_build module for model-based selection
188+     echo  " Building selective_build Python module..." 
189+     cmake --preset pybind -Bcmake-out . 
190+     cmake --build cmake-out --target selective_build -j9
191+ 
186192    test_cmake_select_ops_in_list
187193    test_cmake_select_ops_in_yaml
188194    test_cmake_select_ops_in_model
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments