Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Using Clang (7.0) on Windows to Build Code::Blocks for Windows

(1/2) > >>

smallscript:
I predominantly use clang on Windows for Development. I am pretty expert with Visual Studio. I have the latest LLVM/Clang 7.0 fully integrated with VS2017 including full LLVM lld PDB generation for native windows debugging.

I would like to enable building [/b]Code::Blocks itself using clang. Currently it seems to depend on minggw/gcc to build itself (but with clang that should not be required).

Anyone looked at this or explored it?
As a cross-platform development compiler; clang is the cross-compiler that is most completely integrated into native windows ABI development Windows. I'd be happy to answer any questions.

Check this "Jan 09 Blog" article http://planet.clang.org/

oBFusCATed:
1. there is no clang 7, this is trunk compiler...
2. as start try to compile wxwidgets
3. if you get 2 done, building cb will be easy...

stahta01:

--- Quote from: oBFusCATed on February 16, 2018, 01:01:12 am ---1. there is no clang 7, this is trunk compiler...
2. as start try to compile wxwidgets
3. if you get 2 done, building cb will be easy...

--- End quote ---

Remember Code::Blocks works best with an Shared/DLL build of wxWidgets.

Just tried to build wxwidgets recent git master branch and it failed to build DLL using Clang 5.0.1.

Tim S.
 

oBFusCATed:

--- Quote from: stahta01 on February 16, 2018, 07:56:19 pm ---Just tried to build wxwidgets recent git master branch and it failed to build DLL using Clang 5.0.1.

--- End quote ---
How are you trying? I can't find any instructions about how to use clang to build wxwidgets on windows?

stahta01:

--- Quote from: oBFusCATed on February 16, 2018, 08:35:46 pm ---
--- Quote from: stahta01 on February 16, 2018, 07:56:19 pm ---Just tried to build wxwidgets recent git master branch and it failed to build DLL using Clang 5.0.1.

--- End quote ---
How are you trying? I can't find any instructions about how to use clang to build wxwidgets on windows?

--- End quote ---

I am building under MSys2 (an fork of Cygwin) using configure/make.

It built an static wxWidgets without build errors; did not try running the sample to see if library works.

Followed an modified version of the docs/msw/msys2-msw.txt that I wrote and submitted to wxWidgets team a while ago.


--- Code: ---  CC=clang CXX=clang++ \
    ../configure --with-msw \
    --enable-shared \
    --disable-precomp-headers \

--- End code ---

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version