requirements.qbk 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [/
  2. Copyright Oliver Kowalke 2014.
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt
  6. ]
  7. [section:requirements Requirements]
  8. If __boost_context__ uses fcontext_t (the default) as its implementation,
  9. it must be built for the particular compiler(s) and CPU architecture(s)
  10. being targeted.
  11. Using [link implementation ['fcontext_t]], __boost_context__ includes assembly
  12. code and, therefore, requires GNU as and GNU preprocessor for supported POSIX
  13. systems, MASM for Windows/x86 systems and ARMasm for Windows/arm systems.
  14. [note MASM64 (ml64.exe) is a part of Microsoft's Windows Driver Kit.]
  15. [important Please note that `address-model=64` must be given to bjam command
  16. line on 64bit Windows for 64bit build; otherwise 32bit code will be generated.]
  17. [important For cross-compiling the lib you must specify certain additional
  18. properties at bjam command line: `target-os`, `abi`, `binary-format`,
  19. `architecture` and `address-model`.]
  20. [important Windows using fcontext_t: for safe SEH the property 'asmflags=\safeseh' must be specified at
  21. bjam command line.]
  22. [important Windows using fcontext_t: turn off global program optimization (/GL) and change /EHsc (compiler
  23. assumes that functions declared as extern "C" never throw a C++ exception) to /EHs (tells
  24. compiler assumes that functions declared as extern "C" may throw an exception).]
  25. Because this library uses C++11 extensively, it requires a compatible compiler.
  26. Known minimum working versions are as follows: Microsoft Visual Studio 2015
  27. (msvc-14.0), GCC 4.8 (with -std=c++11), Clang 3.4 (with -std=c++11). Other
  28. compilers may work, if they support the following language features: auto
  29. declarations, constexpr, defaulted functions, final, hdr thread, hdr tuple,
  30. lambdas, noexcept, nullptr, rvalue references, template aliases. thread local,
  31. variadic templates.
  32. [endsect]