[cmake-developers] Update on toolset Clang with Microsoft CodeGen (v140_clang_c2) debug is broken

2017-08-21 Thread Forumer 4umer

Hi,

I posted on 2016/05/02 about the fact that when generating Visual 
projects for clang_c2 debug was broken.

The answer was:

"Basically we need to have a different flag table for each possible
toolset.  Also it looks like additional special handling may be
needed for PDBs and perhaps other limitations of the Clang/C2
toolchain."

I just wanted to know if you had any progress about that ?
I suppose that only a few people in the world are using it or need to 
debug but in my case I am wasting  too much time with this.


Thanks
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


Re: [cmake-developers] toolset Clang with Microsoft CodeGen (v140_clang_c2) debug is broken

2016-08-12 Thread Forumer 4umer
And if you need more information please look at the thread entitled 
"toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is 
broken"

a few months ago.
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


Re: [cmake-developers] toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is broken

2016-08-12 Thread Forumer 4umer

Le 2016-05-02 20:48, foru...@.com a écrit :

Le 2016-05-02 20:41, Brad King a écrit :

On 05/02/2016 02:17 PM, foru...@x.com wrote:
Don't know if it's the best place to report it but I am testing 
nightly

builds(3.5.20160429) to generate some projects
for Visual Studio 2015 and the clang toolset now provided by 
Microsoft.


Yes, this is the right place to report it, especially since this is
recent development.  For reference, support for this toolset was added
in a topic merged here:

  Merge topic 'vs-clang-cl'
  https://cmake.org/gitweb?p=cmake.git;a=commit;h=612a8b3b

based on discussion in this thread:

  [PATCH SET] Support of Clang/C2 compiler.
  
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/15902



I have found some changes that seems to be necessary to be able to
debug, here are the changes I have found:

1) DebugInformationFormat should be set FullDebug, AdditionalOptions
MUST BE removed and optimizations must be disabled


... REMOVE AdditionalOptions ...
FullDebug
...
Disabled
false



2)GenerateDebugInformation must be set to true and 
ProgramDataBaseFile

must be empty because clang doesn't use pdb for now

...
   true
...
   
   




Mariusz, please take a look at this.

See also this hack:

  VS: Fix VS 2015 .vcxproj debug setting for older toolsets
  https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dc422d27

Basically we need to have a different flag table for each possible
toolset.  Also it looks like additional special handling may be
needed for PDBs and perhaps other limitations of the Clang/C2
toolchain.

Thanks,
-Brad


Just a small update about what I wrote regarding AdditionalOptions, I
found that it's not necessary to remove the whole line but only the
-gline-tables-only parameter.



Hi,

I have tested cmake 3.6.1 with the last release of the clang platform by 
Microsoft (v140_clang_c2)
and nothing has changed. By default cmake generates wrong projects with 
this toolset.

So could we fix it step by step:

In the next release of cmake could you please remove the 
-gline-tables-only (and maybe all the additional arguments you provide 
because Microsoft don't add them

when using Visual to generate projects)

Then if you have time please Disable Optimizations in Debug

and finally please set DebugInformationFormat for debug configurations.

For now I have to manually fix all my projects everytime I regenerate 
them and it's not very funny.


Thanks








--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

[cmake-developers] toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7) debug is broken

2016-05-02 Thread forumer

Hi,

Don't know if it's the best place to report it but I am testing nightly 
builds(3.5.20160429) to generate some projects

for Visual Studio 2015 and the clang toolset now provided by Microsoft.
There is one problem when using debug configurations because we cannot 
debug generated executables.
I have found some changes that seems to be necessary to be able to 
debug, here are the changes I have found:



1) DebugInformationFormat should be set FullDebug, AdditionalOptions 
MUST BE removed and optimizations must be disabled



   ... REMOVE AdditionalOptions ...
   FullDebug
   ...
   Disabled
   false



2)GenerateDebugInformation must be set to true and ProgramDataBaseFile 
must be empty because clang doesn't use pdb for now


...
  true
...
  
  



Thanks

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers


Re: [CMake] Is there any ongoing work to support toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7)

2016-04-18 Thread forumer

Hi,

I have tested a nightly build and I have noticed that when compiling in 
debug mode, debug symbols

are not generated and we cannot debug.
When I compare vcxproj files when I enable manually Full Debug 
Information from project properties it seems that

the GenerateDebugInformation is set to FullDebug.
Could you fix it ?



Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">


  Use
  Level3
  Disabled
  
_DEBUG;_CONSOLE;%(PreprocessorDefinitions)

  FullDebug


  Console
  true

...


Thanks

Le 2016-04-08 20:38, Gilles Khouzam a écrit :

Yes, support has been added to the nightly builds. Mariusz has added
support for this.

-Original Message-
From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of
foru...@smartmobili.com
Sent: Friday, April 1, 2016 03:16
To: CMake ML 
Subject: [CMake] Is there any ongoing work to support toolset Clang
3.7 with Microsoft CodeGen (v140_clang_3_7)

Hi,

Microsoft has released a new toolset using clang for the code analysis
and with VS2015 code generator.



--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] Is there any ongoing work to support toolset Clang 3.7 with Microsoft CodeGen (v140_clang_3_7)

2016-04-01 Thread forumer

Hi,

Microsoft has released a new toolset using clang for the code analysis 
and with VS2015 code generator.


https://blogs.msdn.microsoft.com/vcblog/2015/12/04/clang-with-microsoft-codegen-in-vs-2015-update-1/
https://blogs.msdn.microsoft.com/vcblog/2016/01/20/clang-with-microsoft-codegen-january-2016-released/

IS there any ongoing work to support the v140_clang_3_7 for VS2015 ?
Something like:


cmake -G "Visual Studio 14 2015" -T v140_clang_3_7


For the moment if I want to test I have to use the VS2015 generator and 
then manually change the Platform Toolset and warnings level



Thanks

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] Add suppport for new IDE

2015-10-31 Thread forumer

Hi,

I would like to add some support for generating makefiles/IDE solutions 
for the D language (http://dlang.org).
Especially I would like to be able to generate VisualD and monoD 
projects.
The language is hold inside files with a .d extension and that can be 
compiled by 3 differents compilers:


1)dmd: the official compiler
2)gdc: compiler based on gcc
3)ldc: compiler based on llvm


There is already a kind of makefile system called dub that build 
libraries/application but it cannot generate ide projects.
So in a perfect world it would be cool to add support for dub makefile, 
VisualD and MonoD.


Is there any example about how to do that ?
Do you support other languages except C/C++ ?



Thanks

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake