harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Gorr" <vvg...@gmail.com>
Subject Re: [DRLVM] questions about "build.bat -DEBUILD_CFG=debug -DCXX=msvc"
Date Thu, 13 Jul 2006 05:13:40 GMT
Weldon,

why did you pass the EBUILD_CFG but not BUILD_CFG?
I believe a reason of your issue is here.

Thanks,
Vladimir.


On 7/13/06, Weldon Washburn <weldonwjw@gmail.com> wrote:
>
> Hi,
>
> I am trying to use the debugger to step through the write barrier
> support that was recently added to Jitrino.JET.  DRLVM is built using
> "build.bat -DEBUILD_CFG=debug -DCXX=msvc".  However, it turns out that
> "_DEBUG" is not defined and MSVC is definitely optimizing the code.
>
> After looking at the build/make files, I noticed that
> drlvm/trunk/build/make/targets/common_vm.xml contains the lines:
>
>
>            <select cfg="debug">
>                <select os="win" cxx="icl">
>                    <compilerarg value="/QxN" />
>                    <compilerarg value="/Qip" />
>                </select>
>
>                <select os="win" cxx="msvc">
>                    <compilerarg value="/Ox" />
>                </select>
>            </select>
>
> The question is about the compiler switches for
> cfg="debug",cxx="msvc".  It seems "/Ox" tells the compiler to optimize
> the code.   Interestingly its the same compiler switches that are used
> in the cfg=release configuration.  Maybe its a cut and paste typo??
>
> In any case, I modified the msvc switches to read as below:
>
> - <select os="win" cxx="msvc">
> <compilerarg value="/Od" />
> <compilerarg value="/MTd" />
> <compilerarg value="/D_DEBUG" />
> </select>
>
> The code is definitely not optimized which is good.  But the compiler
> is still ignoring "/D_DEBUG".  Any suggestions?
>
>
> --
> Weldon Washburn
> Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message