summaryrefslogtreecommitdiff
path: root/test cases/common/13 pch/cpp
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2019-07-30 11:07:20 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-30 18:07:20 +0300
commit1e53f67187a5df2eff19e65416f4e4c8d06f6257 (patch)
treeb7ef43a6afc033b3db404535a8b2cac52539a4c6 /test cases/common/13 pch/cpp
parent986587067cf49d4466a706f94c8247e6992873c8 (diff)
downloadmeson-1e53f67187a5df2eff19e65416f4e4c8d06f6257.tar.gz
PGI: cpp_pch precompiled headers functionality
* PGI C++ PCH enable PGI compilers support precompiled headers for C++ only. The common/13 pch test passes if run manually with no spaces in the build path. However, since Meson run_project_tests.py makes temporary build directories with spaces in each tests, PGI --pch_dir can't handle this and fails. So we skip the test for PGI despite it working for usual case with no-spaces in build dir. Note: it's fine to have spaces in full path for sourcedir, just no spaces in relative path to builddir. * doc
Diffstat (limited to 'test cases/common/13 pch/cpp')
-rw-r--r--test cases/common/13 pch/cpp/prog.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test cases/common/13 pch/cpp/prog.cc b/test cases/common/13 pch/cpp/prog.cc
index 629d88077..ea258c688 100644
--- a/test cases/common/13 pch/cpp/prog.cc
+++ b/test cases/common/13 pch/cpp/prog.cc
@@ -1,8 +1,11 @@
+// Note: if using PGI compilers, you will need to add #include "prog.hh"
+// even though you're using precompiled headers.
void func() {
std::cout << "This is a function that fails to compile if iostream is not included."
<< std::endl;
}
int main(int argc, char **argv) {
+ func();
return 0;
}