Skip to content

Commit

Permalink
fbc: internal (rename fbcQueryGCC -> fbcQueryCC)
Browse files Browse the repository at this point in the history
  • Loading branch information
rversteegen committed Jan 22, 2024
1 parent 52d7483 commit b148619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/compiler/fbc.bas
Expand Up @@ -306,9 +306,9 @@ private function hGet1stOutputLineFromCommand( byref cmd as string ) as string
return ln
end function

'' Pass some arguments to gcc and read the results. Returns an empty string on
'' Pass some arguments to gcc/clang and read the results. Returns an empty string on
'' an error.
private function fbcQueryGcc( byref options as string ) as string
private function fbcQueryCC( byref options as string ) as string
dim as string path

select case( fbGetOption( FB_COMPOPT_BACKEND ) )
Expand Down Expand Up @@ -517,9 +517,9 @@ private sub fbcFindBin _
'' c) Ask GCC where it is, if applicable (GCC might have its
'' own copy which we must use instead of the system one)
if( tool = FBCTOOL_AS ) then
path = fbcQueryGcc( " -print-prog-name=as" )
path = fbcQueryCC( " -print-prog-name=as" )
elseif( tool = FBCTOOL_LD ) then
path = fbcQueryGcc( " -print-prog-name=ld" )
path = fbcQueryCC( " -print-prog-name=ld" )
end if
case FB_BACKEND_GAS, FB_BACKEND_GAS64
#if defined( __FB_FREEBSD__ )
Expand Down

0 comments on commit b148619

Please sign in to comment.