This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: negating -include on the command line
- From: Devang Patel <dpatel at apple dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 15 Dec 2003 16:37:11 -0800
- Subject: Re: negating -include on the command line
- References: <20031215112329.3880a243.bkoz@redhat.com>
On Dec 15, 2003, at 9:23 AM, Benjamin Kosnik wrote:
I've got a CPP and testsuite question: is there a way to do something
like:
g++ -include bits/stdc++.h -noinclude bits/stdc++.h foo.cc?
This is a contrived example.
Ie, I'm interested in setting up a bunch of testcases (libstd++
testsuite) that run with certain, defined flags (including the
'-include
bits/stdc++.h' bit above). However, on some select files, I'd like to
pass in an extra flag that removes the pch file from the compilation
line.
If you want to remove use of stdc++.h PCH in a compilation then you
can try something like this...
1) create empty header empty_header.h
2) create PCH for empty_header.h
3) g++ -include empty_header.h -include bits/stdc++.h foo.cc
g++ will use 'empty' PCH for empty_header.h and it will not use
PCH for stdc++.h
not sure if use of empty PCH fits in your requirements or not
--
Devang