Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/chromium/build/toolchain/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  get_goma_dir.py   Sprache: Python

 
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This script gets default goma_dir for depot_tools goma.

import os
import sys


def main():
  gomacc = 'gomacc'
  candidates = []
  if sys.platform in ['win32''cygwin']:
    gomacc = 'gomacc.exe'

  for path in os.environ.get('PATH''').split(os.pathsep):
    # normpath() required to strip trailing slash when present.
    if os.path.basename(os.path.normpath(path)) == 'depot_tools':
      candidates.append(os.path.join(path, '.cipd_bin'))

  for d in candidates:
    if os.path.isfile(os.path.join(d, gomacc)):
      sys.stdout.write(d)
      return 0
  # mb analyze step set use_goma=true, but goma_dir="",
  # and bot doesn't have goma in default locataion above.
  # to mitigate this, just use initial depot_tools path
  # or default path as before (if depot_tools doesn't exist
  # in PATH).
  # TODO(ukai): crbug.com/1073276: fix mb analyze step and make it hard error?
  if sys.platform in ['win32''cygwin']:
    sys.stdout.write('C:\\src\\goma\\goma-win64')
  elif 'GOMA_DIR' in os.environ:
    sys.stdout.write(os.environ.get('GOMA_DIR'))
  else:
    sys.stdout.write(os.path.join(os.environ.get('HOME'''), 'goma'))
  return 0


if __name__ == '__main__':
  sys.exit(main())

Messung V0.5
C=98 H=98 G=97

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.