[Gambas-bugtracker] Bug #2194: Compilation from IDE does not work anymore

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed May 12 03:36:43 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2194&from=L21haW4-

Comment #13 by Olivier CRUILLES:

Found the line code that add the option '-p'

Public Function GetCompileCommand(bAll As Boolean, bNoDebug As Boolean, bMakeExecutable As Boolean, bIDE As Boolean) As String

  Dim sExec As String

  If bIDE Then
    sExec = System.Path &/ "bin/gbc" & System.Version
  Else
    sExec = "gbc" & System.Version
  Endif
  sExec &= " -e "
  If bAll Then sExec &= "-a "
  If Not bNoDebug Then sExec &= "-g "
  If Localize Then sExec &= "-t "
  If ControlPublic Then sExec &= "-p "        <========= HERE
  If ModulePublic Then sExec &= "-m "
  If bMakeExecutable Then sExec &= "-x "
  sExec &= "-j" & CStr(Settings["/CompilerJobs", 1]) & " "
  'sExec = sExec & "-c " & Quote(CLASSES_FILE) & " " & Quote(Project.Dir) & " > " & OUTPUT_FILE & " 2>&1"
  If bIDE Then
    If Project.Warnings Then
      sExec &= "-w "
      If CheckVariablePrefix Then sExec &= "-fcheck-prefix "
    Endif
    sExec = sExec & Shell$(Project.Dir)
    sExec = sExec & " > " & OUTPUT_FILE & " 2>&1"
  Endif

  Return sExec

End




More information about the Bugtracker mailing list