Skip to content

Commit

Permalink
cleanup logic
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Dec 17, 2024
1 parent d06cef1 commit 35c14cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions util/chplenv/chpl_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,10 +771,9 @@ def get_gcc_install_dir():
["gcc", "-print-file-name=libgcc.a"], combine_output=True)
if stdout:
gcc_dir_path = stdout.strip()
if not os.path.abspath(gcc_dir_path):
if os.path.abspath(gcc_dir_path):
dirname = os.path.dirname(gcc_dir_path)
if os.path.exists(dirname):
gcc_dir = dirname
gcc_dir = dirname if os.path.exists(dirname) else gcc_dir

return gcc_dir

Expand Down

0 comments on commit 35c14cd

Please sign in to comment.