Skip to content

Commit

Permalink
Switch to uv. Deleted unwanted directories
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Feb 25, 2025
1 parent d929e5f commit de2a337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blint_db/handlers/language_handlers/meson_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def find_executables(self, project_name):
full_path = file_path
print ("Executing file", full_path)
file_output = subprocess.run(
["file", full_path], capture_output=True, check=False, env=os.environ.copy(), shell=sys.platform == "win32", encoding="utf-8"
["/usr/bin/file", full_path], capture_output=True, check=False, env=os.environ.copy(), shell=sys.platform == "win32", encoding="utf-8"
)
if "ELF" in file_output.stdout:
executable_list.append(full_path)
Expand Down Expand Up @@ -86,13 +86,13 @@ def find_meson_executables(project_name):
full_path = file_path
print ("Executing file", full_path)
file_output = subprocess.run(
["file", full_path], capture_output=True, check=False, env=os.environ.copy(), shell=sys.platform == "win32", encoding="utf-8"
["/usr/bin/file", full_path], capture_output=True, check=False, env=os.environ.copy(), shell=sys.platform == "win32", encoding="utf-8"
)
if "ELF" in file_output.stdout:
executable_list.append(full_path)
return executable_list


def strip_executables(file_path, loc=WRAPDB_LOCATION):
strip_command = f"strip --strip-all {file_path}".split(" ")
strip_command = f"/usr/local/opt/binutils/bin/strip --strip-all {file_path}".split(" ")
subprocess.run(strip_command, cwd=loc, check=False, env=os.environ.copy(), shell=sys.platform == "win32", encoding="utf-8")

0 comments on commit de2a337

Please sign in to comment.