diff options
author | Chuck Cranor <chuck@ece.cmu.edu> | 2019-01-24 15:30:03 (GMT) |
---|---|---|
committer | Chuck Cranor <chuck@ece.cmu.edu> | 2019-01-25 14:48:00 (GMT) |
commit | 568343767e5852f0e5751341a3aa44ab6feffb8a (patch) | |
tree | 155402b29ad86aaefdf3838fc42ba5594ad798b2 /Tests/RunCMake/ParseImplicitIncludeInfo/data/aix-CXX-XL-13.1.3.output | |
parent | 40628b2519ae1553a33f701cf46ee8fbbd013b85 (diff) | |
download | CMake-568343767e5852f0e5751341a3aa44ab6feffb8a.zip CMake-568343767e5852f0e5751341a3aa44ab6feffb8a.tar.gz CMake-568343767e5852f0e5751341a3aa44ab6feffb8a.tar.bz2 |
ParseImplicitIncludeInfo: handle/add SunPro, XL, and -nostdinc test cases
Add parser code for compiler IDs SunPro and XL. For SunPro, /usr/include
appears to be hardwired in and it does not have a -nostdinc-type flag.
For XL, the "xlc" and "xlC" commands determine if you are C or C++
based on input filename. So compiling x.c with "xlC" reverts to C
and compiling x.cc with "xlc" upgrades to CXX. System include paths
are specified by:
-qc_stdinc=[path] and -qgcc_c_stdinc=[path] (for C)
-qcpp_stdinc=[path] and -qgcc_cpp_stdinc=[path] (for CXX)
If you specify "-qnostdinc" then the above flags are ignored.
Specifying an empty path reverts the value to the default
path (e.g. "-qgcc_c_stdinc=" reverts that to the default).
Adjust the code to handle parsing the case where the user specifies
additional compiler include flags via CMAKE_C_FLAGS/CMAKE_CXX_FLAGS.
For example: "-DCMAKE_C_FLAGS=-nostdinc" ... note that gcc and clang
output slightly differ when -nostdinc is specified (clang skips
printing 'search starts here:' with the angle brackets, gcc always
prints it).
Enable sunos-{C,CXX}-SunPro test cases and add XL test cases.
Also add a few -nostdinc style tests.
Diffstat (limited to 'Tests/RunCMake/ParseImplicitIncludeInfo/data/aix-CXX-XL-13.1.3.output')
-rw-r--r-- | Tests/RunCMake/ParseImplicitIncludeInfo/data/aix-CXX-XL-13.1.3.output | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/ParseImplicitIncludeInfo/data/aix-CXX-XL-13.1.3.output b/Tests/RunCMake/ParseImplicitIncludeInfo/data/aix-CXX-XL-13.1.3.output new file mode 100644 index 0000000..264e4fe --- /dev/null +++ b/Tests/RunCMake/ParseImplicitIncludeInfo/data/aix-CXX-XL-13.1.3.output @@ -0,0 +1 @@ +/opt/IBM/xlC/13.1.3/include;/opt/IBM/xlmass/8.1.3/include;/usr/include |