| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
This macro is missing from the main MSVC predefined macro list but is
documented by [1] and [2]. Also add `__STDCPP_STRICT_POINTER_SAFETY__`
as documented by [2] in case MSVC ever starts defining it.
[1] https://docs.microsoft.com/en-us/cpp/build/reference/zc-alignednew
[2] https://en.cppreference.com/w/cpp/preprocessor/replace
Fixes: #125
|
|
|
|
|
|
|
| |
Use the table at [1] to add a few missing VS 2017 predefined macros to
our detection table.
[1] https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros
|
|
|
|
|
|
|
| |
Updates to VS 2015 and VS 2017 added support for `-std:` flags
specifying the language standard level for MSVC. The level is reported
in the `_MSVC_LANG` preprocessor definition instead of `__cplusplus`.
Detect MSVC standard C++ level from `_MSVC_LANG`.
|
|
|
|
|
|
| |
If the "<id>" is "gnu-c" or "msvc-c" then run the given compiler command
line on a C source file instead of C++. This allows C language settings
of the given compiler to be detected.
|
|
|
|
|
| |
Use the table at https://msdn.microsoft.com/en-us/library/b0084kay.aspx
to add a few missing VS 2015 predefined macros to our detection table.
|
|
|
|
|
|
|
|
|
|
|
| |
Implement '--castxml-cc-msvc' option to detect preprocessor settings and
the target triplet from MSVC-like compilers. Run the compiler command
with '-c -FoNUL detect_vs.cpp' and capture stdout and stderr. Create
the 'detect_vs.cpp' source using '#pragma message("...")' to tell the
compiler to print detected preprocessor definitions. Treat the stdout
as the preprocessor predefines block and parse it to extract the target
architecture. Extract the header file search path from the 'INCLUDE'
environment variable.
|
|
Implement '--castxml-cc-gnu' option to detect preprocessor settings and
the target triplet from GNU-like compilers. Run the compiler command
with "-E -dM -v empty.cpp" and capture stdout and stderr. Treat the
stdout as the preprocessor predefines block and parse it to extract the
target architecture. Parse the stderr to extract the header file search
path.
Install the now-populated share/castxml resource directory to the
CastXML_INSTALL_DATA_DIR.
|