Skip to content

Commit

Permalink
Allow for /usr/bin/hipcc to be a symlink
Browse files Browse the repository at this point in the history
SWDEV-267206

If /usr/bin/hipcc is a symlink then resolve it first, and then find
the resulting directory rather than resolving /usr/bin.

Change-Id: I380728ffa05ed813cc793a1d6488aaae81ddbda8
  • Loading branch information
amd-isparry authored and adilad committed Feb 16, 2021
1 parent bb7534c commit c34d43d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/hipcc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ sub delete_temp_dirs {

my $base_dir;
BEGIN {
$base_dir = Cwd::realpath( dirname(__FILE__) );
$base_dir = dirname(Cwd::realpath(__FILE__) );
}
use lib "$base_dir/";
use hipvars;
Expand Down
2 changes: 1 addition & 1 deletion bin/hipconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use File::Basename;

my $base_dir;
BEGIN {
$base_dir = Cwd::realpath( dirname(__FILE__) );
$base_dir = dirname( Cwd::realpath(__FILE__) );
}
use lib "$base_dir/";
use hipvars;
Expand Down

0 comments on commit c34d43d

Please sign in to comment.