Commits

Anonymous committed a618afe

added flag_list to -ffast-math and -ipa

  • Participants
  • Parent commits 1b80b01

Comments (0)

Files changed (1)

     trg_flags = dict(rnn_opt3=std99, rnn_opt4=std99)
 
     for com in bld.env.COMPILER_LIST:
-        flags_list = [['-O2'], ['-O3']]
-        if com == 'opencc':
-            flags_list.append(['-Ofast'])
+        flags_list = [['-O3']]  # , ['-O2']
+        if com == 'gcc':
+            flags_list += [['-O3', '-ffast-math']]
+        elif com == 'opencc':
+            flags_list += [['-Ofast'], ['-Ofast', '-ipa']]
+
         for flags in flags_list:
             allflags = default_flags[com] + flags
             for trg in trg_list: