File: platform.cmake

package info (click to toggle)
hyperscan 4.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,676 kB
  • ctags: 17,632
  • sloc: cpp: 126,339; ansic: 34,412; python: 330; sh: 45; makefile: 9
file content (9 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
# determine the target arch

# really only interested in the preprocessor here
CHECK_C_SOURCE_COMPILES("#if !(defined(__x86_64__) || defined(_M_X64))\n#error not 64bit\n#endif\nint main(void) { return 0; }" ARCH_64_BIT)

CHECK_C_SOURCE_COMPILES("#if !(defined(__i386__) || defined(_M_IX86))\n#error not 64bit\n#endif\nint main(void) { return 0; }" ARCH_32_BIT)

set(ARCH_X86_64 ${ARCH_64_BIT})
set(ARCH_IA32 ${ARCH_32_BIT})