2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set(SARCH "" CACHE STRING
|
|
|
|
"Sub-architecture to build for.")
|
|
|
|
|
|
|
|
set(OARCH "athlon64" CACHE STRING
|
|
|
|
"Generate instructions for this CPU type. Specify one of:
|
|
|
|
k8 opteron athlon64 athlon-fx")
|
|
|
|
|
2019-01-12 15:57:51 +00:00
|
|
|
set(OPTIMIZE "1" CACHE STRING
|
2013-01-22 22:38:40 +00:00
|
|
|
"What level of optimization to use.
|
|
|
|
0 = off
|
|
|
|
1 = Default option, optimize for size (-Os) with some additional options
|
|
|
|
2 = Optimize for size (-Os)
|
|
|
|
3 = Optimize debugging experience (-Og)
|
|
|
|
4 = Optimize (-O1)
|
|
|
|
5 = Optimize even more (-O2)
|
|
|
|
6 = Optimize yet more (-O3)
|
|
|
|
7 = Disregard strict standards compliance (-Ofast)")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-10 23:38:37 +00:00
|
|
|
set(LTCG FALSE CACHE BOOL
|
|
|
|
"Whether to build with link-time code generation")
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set(DBG TRUE CACHE BOOL
|
|
|
|
"Whether to compile for debugging.")
|
|
|
|
|
|
|
|
set(KDBG FALSE CACHE BOOL
|
|
|
|
"Whether to compile in the integrated kernel debugger.")
|
|
|
|
|
|
|
|
set(GDB FALSE CACHE BOOL
|
|
|
|
"Whether to compile for debugging with GDB.
|
2013-04-18 21:19:09 +00:00
|
|
|
If you don't use GDB, don't enable this.")
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set(_WINKD_ TRUE CACHE BOOL
|
|
|
|
"Whether to compile with the KD protocol.")
|
|
|
|
|
|
|
|
set(_ELF_ FALSE CACHE BOOL
|
|
|
|
"Whether to compile support for ELF files.
|
|
|
|
Do not enable unless you know what you're doing.")
|
|
|
|
|
|
|
|
set(USERMODE TRUE CACHE BOOL
|
|
|
|
"Whether to compile any usermode parts. This is while kernel mode is under
|
|
|
|
heavy development and usermode part not relevant for bootcd.")
|
2012-01-07 16:05:25 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(_PREFAST_ FALSE CACHE BOOL
|
|
|
|
"Whether to enable PREFAST while compiling.")
|
2020-04-09 01:40:17 +00:00
|
|
|
option(RUNTIME_CHECKS "Whether to enable runtime checks on MSVC" ON)
|
2012-01-07 16:05:25 +00:00
|
|
|
endif()
|