GetPrerequisites: Always filter objdump output as text
When using `grep` to filter the output, add the `-a` flag to tell it never to treat the output as binary. Otherwise when LANG != C in the environment the non-ascii text may break the filter.
This commit is contained in:
parent
955c2a630a
commit
5f3c8f6ab2
|
@ -753,7 +753,7 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
|
|||
find_program(gp_grep_cmd grep)
|
||||
endif()
|
||||
if(gp_grep_cmd)
|
||||
set(gp_cmd_maybe_filter COMMAND ${gp_grep_cmd} "^[[:blank:]]*DLL Name: ")
|
||||
set(gp_cmd_maybe_filter COMMAND ${gp_grep_cmd} "-a" "^[[:blank:]]*DLL Name: ")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "warning: gp_tool='${gp_tool}' is an unknown tool...")
|
||||
|
|
Loading…
Reference in New Issue