Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt: Do not require C++ #3926

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

midokura-xavi92
Copy link
Contributor

By default, the project() CMake command defaults to C and C++. 1 Therefore, CMake might perform tests for both C and C++ compilers as part of the configuration phase.

However, this has the consequence of the configuration phase to fail if the system does not have a C++ toolchain installed, even if C++ is not really used by the project.

By default, the project() CMake command defaults to C and C++. [1]
Therefore, CMake might perform tests for both C and C++ compilers as
part of the configuration phase.

However, this has the consequence of the configuration phase to fail if
the system does not have a C++ toolchain installed, even if C++ is not
really used by the project.

[1]: https://cmake.org/cmake/help/latest/command/project.html
@lum1n0us
Copy link
Collaborator

even if C++ is not really used by the project.

Not true. like:

./libraries/wasi-nn/src/wasi_nn_tensorflowlite.cpp
./libraries/lib-wasi-threads/unit-test/test_tid_allocator.cpp
./compilation/aot_orc_extra2.cpp
./compilation/aot_llvm_extra2.cpp
./compilation/debug/dwarf_extractor.cpp
./compilation/aot_llvm_extra.cpp
./compilation/aot_orc_extra.cpp
./fast-jit/cg/x86-64/jit_codegen_x86_64.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants