import lit.util
import os.path

if lit.util.which('dotnet') == None:
  lit_config.note('dotnet is unavailable, so cross-compilation tests are skipped\n')
  config.unsupported = True
if lit.util.which('node') == None:
  lit_config.note('node is unavailable, so cross-compilation tests are skipped\n')
  config.unsupported = True
if lit.util.which('go') == None:
  lit_config.note('go is unavailable, so cross-compilation tests are skipped\n')
  config.unsupported = True
if lit.util.which('javac') == None:
  lit_config.note('javac is unavailable, so cross-compilation tests are skipped\n')
  config.unsupported = True
if lit.util.which('java') == None:
  lit_config.note('java is unavailable, so cross-compilation tests are skipped\n')
  config.unsupported = True
if lit.util.which('g++') == None:
  lit_config.note('g++ is unavailable, so cross-compilation tests are skipped\n')
  config.unsupported = True

current_dir = os.path.join(config.test_source_root, 'comp', 'manualcompile')
