Closed mmuetzel closed 5 months ago
I think -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
is not clang-cl
.
I think
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
is notclang-cl
.
Oops. Copy-paste error. Should be fixed now.
by the way, how do you get clang-cl work with ninja?
by the way, how do you get clang-cl work with ninja?
I'm opening the "x64 Native Tools Command Prompt for VS 2022", cd
to the build directory and run the command as shown above.
This is fixed now in the dev2 branch, correct?
Yes, this is now fixed and covered in CI.
Describe the bug When trying to build LAGraph with
clang-cl
, it fails with errors like the following:To Reproduce Configure with the following using a MSVC build environment:
Alternatively, configure and build with:
Expected behavior LAGraph builds without error
Desktop (please complete the following information):
dev2
branch with change from #752 and #754Additional context cppreference.com says the following: https://en.cppreference.com/w/c/language/generic
https://en.cppreference.com/w/c/language/type#Compatible_types
IIUC, the following
_Generic
selection is invalid C11 code ifint
is the underlying type for enumerations: https://github.com/DrTimothyAldenDavis/SuiteSparse/blob/9706d509e4d3058653247b1030da46a16f2ea41e/GraphBLAS/Include/GraphBLAS.h#L3965-L3975