@@ -1023,11 +1023,14 @@ def compile_source_files(
1023
1023
# Canonical, symlink-resolved absolute path of the components directory
1024
1024
components_dir_path = (Path (FRAMEWORK_DIR ) / "components" ).resolve ()
1025
1025
for source in config .get ("sources" , []):
1026
- if source ["path" ].endswith (".rule" ):
1026
+ src_path = source ["path" ]
1027
+ if src_path .endswith (".rule" ):
1028
+ continue
1029
+ # Always skip dummy_src.c to avoid duplicate build actions
1030
+ if os .path .basename (src_path ) == "dummy_src.c" :
1027
1031
continue
1028
1032
compile_group_idx = source .get ("compileGroupIndex" )
1029
1033
if compile_group_idx is not None :
1030
- src_path = source .get ("path" )
1031
1034
if not os .path .isabs (src_path ):
1032
1035
# For cases when sources are located near CMakeLists.txt
1033
1036
src_path = str (Path (project_src_dir ) / src_path )
@@ -1130,7 +1133,10 @@ def get_lib_ignore_components():
1130
1133
lib_handler = _component_manager .LibraryIgnoreHandler (config , logger )
1131
1134
1132
1135
# Get the processed lib_ignore entries (already converted to component names)
1133
- lib_ignore_entries = lib_handler ._get_lib_ignore_entries ()
1136
+ get_entries = getattr (lib_handler , "get_lib_ignore_entries" , None )
1137
+ lib_ignore_entries = (
1138
+ get_entries () if callable (get_entries ) else lib_handler ._get_lib_ignore_entries ()
1139
+ )
1134
1140
1135
1141
return lib_ignore_entries
1136
1142
except (OSError , ValueError , RuntimeError , KeyError ) as e :
@@ -1662,7 +1668,6 @@ def get_python_exe():
1662
1668
if not os .path .isfile (python_exe_path ):
1663
1669
sys .stderr .write ("Error: Missing Python executable file `%s`\n " % python_exe_path )
1664
1670
env .Exit (1 )
1665
-
1666
1671
return python_exe_path
1667
1672
1668
1673
0 commit comments