def IsPGOAvailable():
    test.build('pgo.gyp', 'gen_linker_option', chdir=CHDIR)
    tmpfile = test.read(test.built_file_path('linker_options.txt', chdir=CHDIR))
    return any(line.find('PGOPTIMIZE') for line in tmpfile)

  # Test generated build files look fine.
Returns true if the Visual Studio available here supports PGO.
dataset/ETHPy150Open adblockplus/gyp/test/win/gyptest-link-pgo.py/IsPGOAvailable