[Xapian-tickets] [Xapian] #389: Incompatibility between code compiled with and without DEBUG
Xapian
nobody at xapian.org
Fri Nov 16 07:43:32 GMT 2012
#389: Incompatibility between code compiled with and without DEBUG
-------------------------------+--------------------------------------------
Reporter: charliejuggler | Owner: charliejuggler
Type: enhancement | Status: closed
Priority: normal | Milestone: 1.3.1
Component: MSVC makefiles | Version: 1.0.14
Severity: normal | Resolution: fixed
Keywords: | Blockedby:
Platform: Microsoft Windows | Blocking:
-------------------------------+--------------------------------------------
Changes (by olly):
* status: new => closed
* resolution: => fixed
* milestone: 1.2.x => 1.3.1
Comment:
In r16899 I've added code to the include/xapian/version_h.cc template so
that we get a check for _DEBUG if building with MSVC. However, this only
gets used if you use configure with MSVC, which isn't how Charlie builds.
I'm not sure if configure with MSVC currently works or not - installing
MSYS on windows is one approach. The other is to install MSVC in wine and
run configure under Linux, treating MSVC as a cross-compiler. But AFAIK,
neither has been tried recently.
With GCC, version.h is generated unchanged (except a (C) date change).
Faking what MSVC defines with GCC's preprocessor produces a suitable
version.h for MSVC, but I don't know exactly what MSVC outputs in
preprocess-only mode, so this might still need tweaks.
I'm marked this as "fixed" for now - we can reopen if it turns out to need
more work.
I think at this point this isn't worth backporting. If we actually know
it works, it is worth considering.
--
Ticket URL: <http://trac.xapian.org/ticket/389#comment:3>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list