libshit

Just some random shit
git clone https://git.neptards.moe/neptards/libshit.git
Log | Files | Refs | Submodules | README | LICENSE

ci_conf.arch.rb (752B)


      1 step :arch_opts, after: :default_values, before: :final_opts do
      2   x86_common = -> bits, cpu do
      3     env.ASFLAGS.concat %W(-m#{bits})
      4     env.LINKFLAGS.concat %W(-m#{bits})
      5     opt.compile_flags.concat %W(-m#{bits} -march=#{cpu} -mtune=generic)
      6 
      7     opt.triplet_vendors = %w(pc unknown w64)
      8   end
      9 
     10   case opt.architecture
     11   when 'x86'
     12     x86_common[32, 'i686']
     13     # amd64 usually can compile for x86
     14     opt.triplet_machines = %w(i686 i386 i486 i586 x86_64)
     15     env.WINRCFLAGS.concat %w(-F pe-i386)
     16 
     17   when 'amd64'
     18     x86_common[64, 'x86-64']
     19     opt.triplet_machines = %w(x86_64)
     20     env.WINRCFLAGS.concat %w(-F pe-x86-64)
     21 
     22   when 'arm'
     23     opt.triplet_machines = %w(arm)
     24 
     25   else
     26     fail "Unknown architecture #{opt.architecture.inspect}"
     27   end
     28 end