File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2340,16 +2340,8 @@ function(toolchain_parse_make_rule input_file include_files)
23402340 # the file paths are short, split these up into multiple elements using regex
23412341 string (REGEX REPLACE "([^ ])[ ]([^ ])" "\\ 1;\\ 2" input_as_list "${input_as_list} " )
23422342
2343- # Pop the first line and treat it specially
2343+ # Pop the first item containing "empty_file.o:"
23442344 list (POP_FRONT input_as_list first_input_line)
2345- string (FIND ${first_input_line} ": " index)
2346- math (EXPR j "${index} + 2" )
2347- string (SUBSTRING ${first_input_line} ${j} -1 first_include_file)
2348-
2349- # Remove whitespace before and after filename and convert to CMake path.
2350- string (STRIP "${first_include_file} " first_include_file)
2351- file (TO_CMAKE_PATH "${first_include_file} " first_include_file)
2352- set (result "${first_include_file} " )
23532345
23542346 # Remove whitespace before and after filename and convert to CMake path.
23552347 foreach (file ${input_as_list} )
You can’t perform that action at this time.
0 commit comments