
import sys, os


"""
RSqueak Build Options (separated with `--` from RPython options)

Example:
  .build/build.py -Ojit -- --64bit

  --64bit                                       - Compile for 64bit platform
  --plugins database_plugin[,another_plugin]    - Comma-separated list of optional plugins
                                                  (e.g. DatabasePlugin)
"""

if __name__ == "__main__":
    sys.argv[0] = 'rpython'  # required for sqpyte hacks
    if not any(arg.startswith("-") for arg in sys.argv):
        sys.argv.append("--batch")
    target = os.path.join(os.path.dirname(__file__), "..", "targetrsqueak.py")
    if '--' in sys.argv:
      sys.argv[sys.argv.index('--')] = target
    else:
      sys.argv.append(target)
    import environment
    from rpython.translator.goal.translate import main
    main()


import sys, os


"""
RSqueak Build Options (separated with `--` from RPython options)

Example:
  .build/build.py -Ojit -- --64bit

  --64bit                                       - Compile for 64bit platform
  --plugins database_plugin[,another_plugin]    - Comma-separated list of optional plugins
                                                  (e.g. DatabasePlugin)
"""

if __name__ == "__main__":
    if not any(arg.startswith("-") for arg in sys.argv):
        sys.argv.append("--batch")
    target = os.path.join(os.path.dirname(__file__), "..", "targetrsqueak.py")
    if '--' in sys.argv:
      sys.argv[sys.argv.index('--')] = target
    else:
      sys.argv.append(target)
    import environment
    from rpython.translator.goal.translate import main
    main()

Remove hack for sqpyte again
Remove hack for sqpyte again

Related: https://github.com/HPI-SWA-Lab/SQPyte/commit/1afdff01b989352e3d72ca7f2cc9c837471642c7

  
  import sys, os
  
  
  """
  RSqueak Build Options (separated with `--` from RPython options)
  
  Example:
    .build/build.py -Ojit -- --64bit
  
    --64bit                                       - Compile for 64bit platform
    --plugins database_plugin[,another_plugin]    - Comma-separated list of optional plugins
                                                    (e.g. DatabasePlugin)
  """
  
  if __name__ == "__main__":
-     sys.argv[0] = 'rpython'  # required for sqpyte hacks
      if not any(arg.startswith("-") for arg in sys.argv):
          sys.argv.append("--batch")
      target = os.path.join(os.path.dirname(__file__), "..", "targetrsqueak.py")
      if '--' in sys.argv:
        sys.argv[sys.argv.index('--')] = target
      else:
        sys.argv.append(target)
      import environment
      from rpython.translator.goal.translate import main
      main()
  
Remove hack for sqpyte again
## Code Before:

import sys, os


"""
RSqueak Build Options (separated with `--` from RPython options)

Example:
  .build/build.py -Ojit -- --64bit

  --64bit                                       - Compile for 64bit platform
  --plugins database_plugin[,another_plugin]    - Comma-separated list of optional plugins
                                                  (e.g. DatabasePlugin)
"""

if __name__ == "__main__":
    sys.argv[0] = 'rpython'  # required for sqpyte hacks
    if not any(arg.startswith("-") for arg in sys.argv):
        sys.argv.append("--batch")
    target = os.path.join(os.path.dirname(__file__), "..", "targetrsqueak.py")
    if '--' in sys.argv:
      sys.argv[sys.argv.index('--')] = target
    else:
      sys.argv.append(target)
    import environment
    from rpython.translator.goal.translate import main
    main()

## Instruction:
Remove hack for sqpyte again
## Code After:

import sys, os


"""
RSqueak Build Options (separated with `--` from RPython options)

Example:
  .build/build.py -Ojit -- --64bit

  --64bit                                       - Compile for 64bit platform
  --plugins database_plugin[,another_plugin]    - Comma-separated list of optional plugins
                                                  (e.g. DatabasePlugin)
"""

if __name__ == "__main__":
    if not any(arg.startswith("-") for arg in sys.argv):
        sys.argv.append("--batch")
    target = os.path.join(os.path.dirname(__file__), "..", "targetrsqueak.py")
    if '--' in sys.argv:
      sys.argv[sys.argv.index('--')] = target
    else:
      sys.argv.append(target)
    import environment
    from rpython.translator.goal.translate import main
    main()
