Questions
Answer the following questions to test your knowledge of this chapter:
- How are toolchain files passed to CMake?
- What is usually defined in a toolchain file for cross-compiling?
- What is a staging directory in the context of a sysroot?
- How can an emulator be passed to CMake for testing?
- What triggers the detection of compiler features?
- How can the configuration context for compiler checks be stored and restored?
- What is the effect of the
CMAKE_CROSSCOMPILING
variable on compiler checks? - Why should the build directory be fully cleared when switching toolchains and not just the cache deleted?