20 Commits

Author SHA1 Message Date
Rene Rivera
fb59068deb Convert documentatio to Asciidoctor. 2019-12-31 16:14:17 -06:00
Benjamin Worpitz
07df9dd360 Always define BOOST_COMP_NVCC instead of BOOST_COMP_NVCC_EMULATED (#84)
Currently BOOST_COMP_NVCC is never set but always BOOST_COMP_NVCC_EMULATED
because the NVCC preprocessor emulates the host compiler being used
(gcc/clang/msvc/...) which are detected earlier.

The nvcc compilation process is somewhat special as can be read here:
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#cuda-compilation-trajectory
The nvcc compiler precompiles the input two times. Once for the device code
being compiled by the cicc device compiler and once for the host code
compiled by the real host compiler. NVCC uses gcc/clang/msvc/...
depending on the host compiler being set on the command line.

Predef (as a preprocessor only lib) detects the one doing the preprocessing
as compiler and expects it to be the one doing the real compilation.
This is not true for NVCC which is only doing the preprocessing and which
is using another compiler for parts of its work. So for NVCC it should be
allowed to set BOOST_COMP_NVCC additionally to the already detected host
compiler because both is true: It is gcc/clang/... compiling the code, but it
is also NVCC doing th preprocessing and adding some other quirks you may
want to detect.

This behavior is similar to what boost config is doing in `select_compiler_config.hpp`.
There the NVCC detection is not handled as a real compiler (part of the
#if-#elif) but as additional option before the real compiler.
2018-08-30 14:41:44 -05:00
Rene Rivera
759400b413 Rebase from hash-predef source. 2018-08-25 23:36:20 -05:00
Benjamin Worpitz
7a4ca9dc90 add nvcc compiler detection (#72) 2018-05-13 10:22:00 -05:00
Rene Rivera
9afb15401b Handle Intel version 9999 == 12.1.0 (fixes #38). 2017-06-05 09:09:13 -05:00
Rene Rivera
0d56819d68 Switch VS versions post 2015 to CL version. 2017-03-17 11:11:30 -05:00
Rene Rivera
822d09f19b Fix Intel C/C++ compiler version specification.
Add `BOOST_VERSION_NUMBER_MAJOR`, `BOOST_VERSION_NUMBER_MINOR`,
`BOOST_VERSION_NUMBER_PATCH` macros to extract components from valid
version numbers.
2017-01-03 22:07:48 -06:00
Rene Rivera
a3f6ac9fb2 Fix spelling of version macro.
Version macro had a "N" instead of an "M". Thanks to Charly Chevalier for spotting that.
2015-07-08 05:27:03 -06:00
Rene Rivera
a3dffe8f1a Update docs for check utility changes and for 1.3 release. Bump versions
for release of 1.3. Update copyrights that I forgot on the previous
commits.
2015-07-01 17:19:29 -05:00
Rene Rivera
0f113b0871 Fix non-standard test feature test collection. I.e. make the feature
collection no rely on implementioned defined behaviour. And fix check
program handling of no-expression invocations vs expression invocations.
2015-06-29 18:49:33 -05:00
Rene Rivera
58c23226b1 Update SunPro to accomodate latest versions of compiler form Oracle. And
update to Oracle name.
2015-05-27 20:36:27 -05:00
Rene Rivera
ee021f808a Fix bad MSC version number. 2014-11-19 08:18:17 -06:00
Rene Rivera
75365a884e Account for skip in Visual Studio product version vs. compiler version
to map compiler version to product version.
2014-11-18 12:44:39 -06:00
Rene Rivera
a3a555610c Initial implementation of exclusive definition of compiler detection
with emulated definitions.
2014-01-16 15:50:19 -06:00
Rene Rivera
3ccc33fa28 Update copyrights back to original author. 2014-01-10 08:46:03 -06:00
Rene Rivera
b10e3490ec Completed all changes from review. 2013-04-02 21:40:46 -05:00
Rene Rivera
9fcecba7cc Most changes from review comments implemented. Remove use of "#elif" for
backward PP compatability. Add BOOST_category_item_AVAILABLE as a
defined, or not, symbol for use with "#ifdef" or "#ifndef". Add
documentation of macros used for detection and version information. Also
replace direct use of BVN(0,0,0) and BVN(0,0,1) with more meaningful
macros that are globally defined, and hence consistent.
2013-01-18 21:25:30 -06:00
grafikrobot
68470ca33e Add definition docs for all the predefs. 2013-01-10 23:23:37 -06:00
Rene Rivera
fe6037697c Get the doc building working again (with the quickbook-dev branch).
Update html docs to match latest code state.
2013-01-05 15:31:59 -06:00
Rene Rivera
dbb5965186 Restructure the project to match new modular layout. 2012-12-28 22:25:52 -06:00