Author Topic: VVLM Clang Compiler  (Read 5602 times)

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
VVLM Clang Compiler
« on: January 02, 2019, 12:20:22 pm »
Hello.
I have download pdfium for building on windows 10. At C:\repo\pdfium\third_party\llvm-build\Release+Asserts\bin\ there are exe files, that ninja uses for compilation.
Where must put all that in Global Compiler Settings for VVML.
When building pdfium in windows with ninja building system, i can not connect with my program in GCC, so i must use VVML Clang compiler.
Quote
clang-cl.exe
lld-link.exe
llvm-pdbutil.exe
llvm-symbolizer.exe
llvm-undname.exe
msdia140.dll
sancov.exe

At the folder C:\repo\pdfium\third_party\llvm-build\Release+Asserts\lib\clang\8.0.0\lib\windows\ we have

Quote
clang_rt.asan-i386.lib
clang_rt.asan-x86_64.lib
clang_rt.asan_cxx-i386.lib
clang_rt.asan_cxx-x86_64.lib
clang_rt.asan_dll_thunk-i386.lib
clang_rt.asan_dll_thunk-x86_64.lib
clang_rt.asan_dynamic-i386.dll
clang_rt.asan_dynamic-i386.lib
clang_rt.asan_dynamic-x86_64.dll
clang_rt.asan_dynamic-x86_64.lib
clang_rt.asan_dynamic_runtime_thunk-i386.lib
clang_rt.asan_dynamic_runtime_thunk-x86_64.lib
clang_rt.fuzzer_no_main-x86_64.lib
clang_rt.profile-i386.lib
clang_rt.profile-x86_64.lib
clang_rt.ubsan_standalone-i386.lib
clang_rt.ubsan_standalone-x86_64.lib
clang_rt.ubsan_standalone_cxx-i386.lib
clang_rt.ubsan_standalone_cxx-x86_64.lib

Thank you
Jim.
« Last Edit: January 02, 2019, 12:22:55 pm by dkaip »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2750
Re: VVLM Clang Compiler
« Reply #1 on: January 02, 2019, 07:34:36 pm »
What version of CB are you currently using?
The CB nightly built distribution already has a LLVM clang compiler entry built-in.

Look at Settings/compiler/Selected compiler dropdown box and see if there is a LLVM clang compiler entry there.

If not, I'd suggest that you download a nightly build. I know that 15 August 2018 build has an LLVM clang entry built in .
http://forums.codeblocks.org/index.php?board=20.0

From there, you can set up the build chain, and the include directories to point to your installed LLVM folder.

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
Re: VVLM Clang Compiler
« Reply #2 on: September 28, 2020, 08:45:22 pm »
Hello, many time past, now i must set c,c++ compiler, linker for dynamic and static libs, debugger, resource compiler and make probgram from C:\repo\pdfium\third_party\llvm-build\Release+Asserts\bin directory.
As i see i have put for c and c++ compiler the clang-cl.exe
For dynamic libs lld-link.exe.
For static libs C::B has ar.exe.
ar.exe is at C:\Program Files\CodeBlocks\MinGW\bin\ directory 1,055KB
ar.exe is at C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\bin directory 1,055KB
windres.exe is at C:\Program Files\CodeBlocks\MinGW\bin
mingw32-make.exe is at C:\Program Files\CodeBlocks\MinGW\bin
Running the most simple program i am taking
lld-link: error: could not open 'libcmt.lib': no such file or directory
How i can set vvlm compiler with clang-cl?
Thank you
Jim


« Last Edit: September 28, 2020, 08:53:44 pm by dkaip »