@@ -45,7 +45,7 @@ def find_executables(self, project_name):
45
45
full_path = file_path
46
46
print ("Executing file" , full_path )
47
47
file_output = subprocess .run (
48
- ["file" , full_path ], capture_output = True , check = False , env = os .environ .copy (), shell = sys .platform == "win32" , encoding = "utf-8"
48
+ ["/usr/bin/ file" , full_path ], capture_output = True , check = False , env = os .environ .copy (), shell = sys .platform == "win32" , encoding = "utf-8"
49
49
)
50
50
if "ELF" in file_output .stdout :
51
51
executable_list .append (full_path )
@@ -86,13 +86,13 @@ def find_meson_executables(project_name):
86
86
full_path = file_path
87
87
print ("Executing file" , full_path )
88
88
file_output = subprocess .run (
89
- ["file" , full_path ], capture_output = True , check = False , env = os .environ .copy (), shell = sys .platform == "win32" , encoding = "utf-8"
89
+ ["/usr/bin/ file" , full_path ], capture_output = True , check = False , env = os .environ .copy (), shell = sys .platform == "win32" , encoding = "utf-8"
90
90
)
91
91
if "ELF" in file_output .stdout :
92
92
executable_list .append (full_path )
93
93
return executable_list
94
94
95
95
96
96
def strip_executables (file_path , loc = WRAPDB_LOCATION ):
97
- strip_command = f"strip --strip-all { file_path } " .split (" " )
97
+ strip_command = f"/usr/local/opt/binutils/bin/ strip --strip-all { file_path } " .split (" " )
98
98
subprocess .run (strip_command , cwd = loc , check = False , env = os .environ .copy (), shell = sys .platform == "win32" , encoding = "utf-8" )
0 commit comments