Skip to content

Commit 9f7274c

Browse files
authored
Merge pull request swiftlang#25 from jpsim/disable-warn-as-error
disable "treat warnings as errors" when running xcodebuild
2 parents 07d7111 + 427785a commit 9f7274c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def get_build_command(self, incremental=False):
108108
+ ['-sdk', self._sdk,
109109
'CODE_SIGN_IDENTITY=',
110110
'CODE_SIGNING_REQUIRED=NO',
111-
'ENABLE_BITCODE=NO'])
111+
'ENABLE_BITCODE=NO',
112+
'GCC_TREAT_WARNINGS_AS_ERRORS=0'])
112113
for setting, value in self._build_settings.iteritems():
113114
command += ['%s=%s' % (setting, value)]
114115

@@ -130,7 +131,8 @@ def get_test_command(self, incremental=False):
130131
'SWIFT_LIBRARY_PATH=%s' %
131132
get_stdlib_platform_path(
132133
self._build_settings['SWIFT_EXEC'],
133-
self._destination)])
134+
self._destination)]
135+
+ ['GCC_TREAT_WARNINGS_AS_ERRORS=0'])
134136
for setting, value in self._build_settings.iteritems():
135137
command += ['%s=%s' % (setting, value)]
136138

0 commit comments

Comments
 (0)