Skip to content
Snippets Groups Projects
Commit 5f3c8f6a authored by Alexander Shishenko's avatar Alexander Shishenko Committed by Brad King
Browse files

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.
parent 955c2a63
Branches
Tags
No related merge requests found
......@@ -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...")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment