@@ -41,7 +41,7 @@ def prepare(self):
4141 shared_path = os .path .abspath (os .path .join (source_path , 'resources' , 'share' ))
4242 datastore .update_shared (host , datastore_version , shared_path )
4343
44- def build (self , jobs , qmake_args , dev_build , eolInMonth ):
44+ def build (self , jobs , qmake_args , dev_build ):
4545 """
4646 Run the build itself. Pass dev_build=True to enable a dev build
4747 """
@@ -55,15 +55,6 @@ def build(self, jobs, qmake_args, dev_build, eolInMonth):
5555 if dev_build :
5656 qmake_call += ['SWIFT_CONFIG.devBranch=true' ]
5757
58- if eolInMonth > 0 :
59- eolYear = date .today ().year
60- eolMonth = date .today ().month + eolInMonth - 1
61- eolYear = eolYear + ( eolMonth / 12 )
62- eolMonth = eolMonth % 12 + 1
63- eolDate = date (int (eolYear ), int (eolMonth ), 1 )
64- print ('Setting EOL date to ' + eolDate .strftime ('%Y%m%d' ))
65- qmake_call += ['SWIFT_CONFIG.endOfLife=' + eolDate .strftime ('%Y%m%d' )]
66-
6758 qmake_call += ['-r' , os .pardir ]
6859 subprocess .check_call (qmake_call , env = dict (os .environ ))
6960
@@ -353,7 +344,7 @@ def print_help():
353344 'Windows' : ['msvc' , 'mingw' ]
354345 }
355346 compiler_help = '|' .join (supported_compilers [platform .system ()])
356- print ('build.py -w <32|64> -t <' + compiler_help + '> [-v] [-d] [-e <end of life in month>] [- q <extra qmake argument>]' )
347+ print ('build.py -w <32|64> -t <' + compiler_help + '> [-v] [-d] [-q <extra qmake argument>]' )
357348
358349
359350# Entry point if called as a standalone program
@@ -363,11 +354,10 @@ def main(argv):
363354 dev_build = False
364355 jobs = None
365356 upload_symbols = False
366- eolInMonth = 0
367357 qmake_args = []
368358
369359 try :
370- opts , args = getopt .getopt (argv , 'hw:t:j:due:q: v' , ['wordsize=' , 'toolchain=' , 'jobs=' , 'dev' , 'upload' , 'eol ' , 'qmake-arg=' , 'version' ])
360+ opts , args = getopt .getopt (argv , 'hw:t:j:duq: v' , ['wordsize=' , 'toolchain=' , 'jobs=' , 'dev' , 'upload' , 'qmake-arg=' , 'version' ])
371361 except getopt .GetoptError :
372362 print_help ()
373363 sys .exit (2 )
@@ -393,8 +383,6 @@ def main(argv):
393383 dev_build = True
394384 elif opt in ('-u' , '--upload' ):
395385 upload_symbols = True
396- elif opt in ('-e' , '--eol' ):
397- eolInMonth = int (arg )
398386 elif opt in ('-q' , '--qmake-arg' ):
399387 qmake_args += [arg ]
400388
@@ -419,7 +407,7 @@ def main(argv):
419407 builder = builders [platform .system ()][tool_chain ](word_size )
420408
421409 builder .prepare ()
422- builder .build (jobs , qmake_args , dev_build , eolInMonth )
410+ builder .build (jobs , qmake_args , dev_build )
423411 builder .checks ()
424412 builder .install ()
425413 builder .publish ()
0 commit comments