Re: [Oorexx-devel] Questions ad differences between "RELEASE", "DEBUG" and "RELWITHDEBUGINFO" on Windows?

2018-12-04 Thread Rony G. Flatscher
On 04.12.2018 16:06, Rick McGuire wrote:
> Debug compiles the code without a lot of optimizations and also creates the 
> debug information.
> Release compiles with full optimizations and does not create the debug 
> information. RelWithDebInfo
> is the same as Release, but also creates the debug information. 
>
> The installer stuff in CMakeLists.txt is supposed to install the .pdb for 
> both the Debug and
> RelWithDebInfo configurations, so I'm not sure why you are not seeing. 
> Perhaps the case of the
> option matters, but in that case, the Debug version would be missing the 
> information too.
Thank you for your information and also thanks to Enrico, who also spelled out 
all the default build
options and some more interesting CMake properties.

Looking at my build options it turns out that I have a spelling error, I wrote 
"RELWITHDEBUGINFO"
instead of "RELWITHDEBINFO" ("DEB" and not "DEBUG")!
(Did not notice that error as CMake would not warn about it.)

Now the pdb-files and the nsis installation package get built successfully!

---rony





___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Questions ad differences between "RELEASE", "DEBUG" and "RELWITHDEBUGINFO" on Windows?

2018-12-04 Thread Enrico Sorichetti via Oorexx-devel
All depends on the setuo …

The CMAKE_BUILD_TYPE 
Has the only effect to chose for the compilation and linking
The appropriate flags

The RELEASE,RELWITHDEBINFO,DEBUG,MINSIZEREL types
Are the ones handled automatically by CMAKE

The variable used for that are of the form
CMAKE_CXX_FLAGS_ 

CMAKE_CXX_FLAGS 
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_RELEASE 
CMAKE_CXX_FLAGS_RELWITHDEBINFO 

And cmake will use the appropriate ones 

If no build type is specified 
The compiler and the linker flags are empty 

If You go to the build directory  the command 
Ccmake .
Will open a ncusers based cmake session
Where You can modify some CMAKE options 
It You enter t it will show all ( almost ) the variable used by CMAKE

In my projects I have an include module
to set defaults different from the cmake provided ones 
You should be able to look at them :-)

But cmake is smarter than most people think 

You can for example 

Cmake -DCMAKE_BUILD_TYPE=My … … …

And cmake will use the flags contained in the variables of the form
CMAKE_CXX_FLAGS_MY

E



> On 4 Dec 2018, at 15:25, Rony G. Flatscher  wrote:
> 
> While creating new installation packages from trunk for Windows, I have 
> experimented with the different build types with CMake.
> 
> Question: would the following create a DEBUG or a RELEASE version by default?
> cmake -G "NMake Makefiles" F:\work\svn\oorexx\main\trunk

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


Re: [Oorexx-devel] Questions ad differences between "RELEASE", "DEBUG" and "RELWITHDEBUGINFO" on Windows?

2018-12-04 Thread Rick McGuire
Debug compiles the code without a lot of optimizations and also creates the
debug information. Release compiles with full optimizations and does not
create the debug information. RelWithDebInfo is the same as Release, but
also creates the debug information.

The installer stuff in CMakeLists.txt is supposed to install the .pdb for
both the Debug and RelWithDebInfo configurations, so I'm not sure why you
are not seeing. Perhaps the case of the option matters, but in that case,
the Debug version would be missing the information too.

Rick

On Tue, Dec 4, 2018 at 9:26 AM Rony G. Flatscher 
wrote:

> While creating new installation packages from trunk for Windows, I have
> experimented with the different build types with CMake.
>
> Question: would the following create a DEBUG or a RELEASE version by
> default?
>
> cmake -G "NMake Makefiles" F:\work\svn\oorexx\main\trunk
>
> nmake
> nmake clean
>
>
> Question: what is the difference between DEBUG and RELWITHDEBUGINFO?
>
> DEBUG: creates the .PDB-files on Windows (however, for debugging they need to 
> be present in the directory from which NSIS took them?)
>
> cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=DEBUG 
> F:\work\svn\oorexx\main\trunk
>
> RELWITHDEBUGINFO: does not create the .PDB-files on Windows, yet the 
> nsis-exe-file's size is a little larger (ca. 130KB) than the RELEASE version
>   and appr. 30 MB (!) smaller than the DEBUG version
>
> cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELWITHDEBUGINFO  
> F:\work\svn\oorexx\main\trunk
>
>
> For creating the installation packages I used the following two
> definitions:
>
> RELEASE:
> cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELEASE  
> -DDOC_SOURCE_DIR=G:\oorexx.tmp\oorexxDocs -DOS_DIST=windows 
> F:\work\svn\oorexx\main\trunk
>
> DEBUG and RELWITHDEBUGINFO:
> cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELWITHDEBUGINFO 
> -DDOC_SOURCE_DIR=G:\oorexx.tmp\oorexxDocs -DOS_DIST=windows 
> F:\work\svn\oorexx\main\trunk
>
> nmake
> nmake nsis_template_installer
>
> Here the three installation packages using the three different
> -DCMAKE_BUILD_TYPE on Windows (they are in my Dropbox, 32-bit versions to
> follow:
> 
> 
> ):
>
> 04.12.2018  15:1250.988.523 ooRexx.5.0.0.11562-x86_64-debug.exe
> 04.12.2018  14:3220.485.840 ooRexx.5.0.0.11562-x86_64-release.exe
> 04.12.2018  15:0220.611.448 
> ooRexx.5.0.0.11562-x86_64-relWithDebugInfo.exe
>
> Any answers/insights highly appreciated!
>
> ---rony
>
> ___
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


[Oorexx-devel] Questions ad differences between "RELEASE", "DEBUG" and "RELWITHDEBUGINFO" on Windows?

2018-12-04 Thread Rony G. Flatscher
While creating new installation packages from trunk for Windows, I have 
experimented with the
different build types with CMake.

Question: would the following create a DEBUG or a RELEASE version by default?

cmake -G "NMake Makefiles" F:\work\svn\oorexx\main\trunk

nmake
nmake clean

Question: what is the difference between DEBUG and RELWITHDEBUGINFO?

DEBUG: creates the .PDB-files on Windows (however, for debugging they need 
to be present in the directory from which NSIS took them?)

cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=DEBUG 
F:\work\svn\oorexx\main\trunk

RELWITHDEBUGINFO: does not create the .PDB-files on Windows, yet the 
nsis-exe-file's size is a little larger (ca. 130KB) than the RELEASE version
  and appr. 30 MB (!) smaller than the DEBUG version

cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELWITHDEBUGINFO  
F:\work\svn\oorexx\main\trunk

For creating the installation packages I used the following two definitions:

RELEASE:
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELEASE  
-DDOC_SOURCE_DIR=G:\oorexx.tmp\oorexxDocs -DOS_DIST=windows 
F:\work\svn\oorexx\main\trunk

DEBUG and RELWITHDEBUGINFO:
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=RELWITHDEBUGINFO 
-DDOC_SOURCE_DIR=G:\oorexx.tmp\oorexxDocs -DOS_DIST=windows 
F:\work\svn\oorexx\main\trunk

nmake
nmake nsis_template_installer

Here the three installation packages using the three different 
-DCMAKE_BUILD_TYPE on Windows (they
are in my Dropbox, 32-bit versions to follow:
):

04.12.2018  15:1250.988.523 ooRexx.5.0.0.11562-x86_64-debug.exe
04.12.2018  14:3220.485.840 ooRexx.5.0.0.11562-x86_64-release.exe
04.12.2018  15:0220.611.448 
ooRexx.5.0.0.11562-x86_64-relWithDebugInfo.exe

Any answers/insights highly appreciated!

---rony

___
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel