Index: test/cflags/gyptest-cflags.py |
=================================================================== |
--- test/cflags/gyptest-cflags.py (revision 1690) |
+++ test/cflags/gyptest-cflags.py (working copy) |
@@ -10,6 +10,7 @@ |
""" |
import os |
+import sys |
import TestGyp |
env_stack = [] |
@@ -22,10 +23,13 @@ |
def PopEnv(): |
os.eniron=env_stack.pop() |
-# Regenerating build files when a gyp file changes is currently only supported |
-# by the make generator. |
-test = TestGyp.TestGyp(formats=['make']) |
+formats = ['make'] |
+if sys.platform.startswith('linux'): |
+ # Only Linux ninja generator supports CFLAGS. |
+ formats.append('ninja') |
+test = TestGyp.TestGyp(formats=formats) |
+ |
try: |
PushEnv() |
os.environ['CFLAGS'] = '-O0' |