Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

color_coded seems to be using clang no matter what #184

Description

@cyboflash

I'm on Ubuntu 19.04. Trying to build color_coded. Want to build using GCC but it builds using clang. Here is the output of my update-alternatives --config c++ command

There are 2 choices for the alternative c++ (providing /usr/bin/c++).

  Selection    Path              Priority   Status
------------------------------------------------------------
  0            /usr/bin/g++       20        auto mode
  1            /usr/bin/clang++   10        manual mode
* 2            /usr/bin/g++       20        manual mode

Press <enter> to keep the current choice[*], or type selection number:

Here is the where /usr/bin/g++ is pointing to

$ ls -lah /usr/bin/g++
lrwxrwxrwx 1 root root 5 Sep 13 11:40 /usr/bin/g++ -> g++-8

Here is how I run my cmake
cmake .. -DDOWNLOAD_CLANG=0 -DLLVM_CONFIG=/usr/bin/llvm-config-8 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON

Then I run make and here is where I have a problem. I noticed that cmake is using clang instead of gcc. Here is one example of the build:

[100%] Linking CXX executable color_coded_config_test /usr/bin/cmake -E cmake_link_script CMakeFiles/color_coded_config_test.dir/link.txt --verbose=1 /usr/bin/c++ -std=c++14 -O3 -DNDEBUG -rdynamic CMakeFiles/color_coded_config_test.dir/test/src/config/main.cpp.o -o color_coded_config_test -Wl,-rpath,/usr/lib/llvm-8/lib /usr/lib/llvm-8/lib/libclang.so /usr/lib/llvm-8/lib/libclangTooling.a /usr/lib/llvm-8/lib/libclangToolingCore.a /usr/lib/llvm-8/lib/libclangIndex.a /usr/lib/llvm-8/lib/libclangFrontend.a /usr/lib/llvm-8/lib/libclangFrontendTool.a /usr/lib/llvm-8/lib/libclangDriver.a /usr/lib/llvm-8/lib/libclangFormat.a /usr/lib/llvm-8/lib/libclangCodeGen.a /usr/lib/llvm-8/lib/libclangParse.a /usr/lib/llvm-8/lib/libclangSema.a /usr/lib/llvm-8/lib/libclangEdit.a /usr/lib/llvm-8/lib/libclangAnalysis.a /usr/lib/llvm-8/lib/libclangSerialization.a /usr/lib/llvm-8/lib/libclangStaticAnalyzerFrontend.a /usr/lib/llvm-8/lib/libclangStaticAnalyzerCheckers.a /usr/lib/llvm-8/lib/libclangStaticAnalyzerCore.a /usr/lib/llvm-8/lib/libclangRewriteFrontend.a /usr/lib/llvm-8/lib/libclangRewrite.a /usr/lib/llvm-8/lib/libclangAnalysis.a /usr/lib/llvm-8/lib/libclangAST.a /usr/lib/llvm-8/lib/libclangASTMatchers.a /usr/lib/llvm-8/lib/libclangDynamicASTMatchers.a /usr/lib/llvm-8/lib/libclangLex.a /usr/lib/llvm-8/lib/libclangBasic.a -lLLVM-8 -L/usr/lib/llvm-8/lib libcolor_coded_boost.a -llua5.3 -lm -lcurses -lz -lpthread /usr/lib/llvm-8/lib/libclangSerialization.a /usr/lib/llvm-8/lib/libclangStaticAnalyzerFrontend.a /usr/lib/llvm-8/lib/libclangStaticAnalyzerCheckers.a /usr/lib/llvm-8/lib/libclangStaticAnalyzerCore.a /usr/lib/llvm-8/lib/libclangRewriteFrontend.a /usr/lib/llvm-8/lib/libclangRewrite.a /usr/lib/llvm-8/lib/libclangAST.a /usr/lib/llvm-8/lib/libclangASTMatchers.a /usr/lib/llvm-8/lib/libclangDynamicASTMatchers.a /usr/lib/llvm-8/lib/libclangLex.a /usr/lib/llvm-8/lib/libclangBasic.a -lLLVM-8 -llua5.3 -lm -lcurses -lz -lpthread

How do I build with gcc instead of clang?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions