gyptest-asm-files.py 722 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 Google Inc. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """
  6. Make sure .s files aren't passed to cl.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'win32':
  11. test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
  12. CHDIR = 'asm-files'
  13. test.run_gyp('asm-files.gyp', chdir=CHDIR)
  14. # The compiler will error out if it's passed the .s files, so just make sure
  15. # the build succeeds. The compiler doesn't directly support building
  16. # assembler files on Windows, they have to be built explicitly with a
  17. # third-party tool.
  18. test.build('asm-files.gyp', test.ALL, chdir=CHDIR)
  19. test.pass_test()