logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

gen.lua (751B)


  1. local function probe(var)
  2. build('probe', '$outdir/'..var, {'$dir/'..var, '|', '$basedir/scripts/probe.sh'}, {var=var})
  3. end
  4. probe('HAVE_EMMINTRIN_H')
  5. probe('HAVE_IMMINTRIN_H')
  6. probe('HAVE_INLINE_ASM')
  7. probe('HAVE_MMINTRIN_H')
  8. probe('HAVE__MM_CLMULEPI64_SI128')
  9. probe('HAVE__MM_MOVEMASK_EPI8')
  10. probe('HAVE__THREAD_LOCAL')
  11. probe('HAVE___BUILTIN_ASSUME_ALIGNED')
  12. probe('HAVE___BUILTIN_CHOOSE_EXPR')
  13. probe('HAVE___BUILTIN_BSWAP16')
  14. probe('HAVE___BUILTIN_CLZ')
  15. probe('HAVE___BUILTIN_CTZL')
  16. probe('HAVE___BUILTIN_POPCOUNT')
  17. probe('PIC')
  18. local function probesize(var)
  19. build('probe-size', '$outdir/'..var, {'$dir/'..var, '|', '$basedir/scripts/probe-size.sh'}, {var=var})
  20. end
  21. probesize('SIZEOF_LONG')
  22. probesize('SIZEOF_SIZE_T')
  23. probesize('SIZEOF_TIME_T')