xmake does not work with conda build tools #3438
Replies: 2 comments 1 reply
-
The conda environment sets the $CC, $LD environment variable, which affects the choice of xmake's compilation toolchain, so xmake will use the LD=x86_64-conda-linux-gnu-ld specified by conda as the linker. But normally, when compiling a c/c++ project, you should use clang++/g++ as the linker and do not use One solution is to unset the LD environment variable. Another solution is to force xmake to switch to another toolchain, e.g. |
Beta Was this translation helpful? Give feedback.
-
try this patch #6022 |
Beta Was this translation helpful? Give feedback.
-
Having conda activated, xmake fails to link.
xmake version: xmake v2.7.6+master.c34ac1c69
The project is created simply using
xmake create test_project
xmake -rv
outputthe
xmake.lua
file contentthe problem is resolved if I specify the linker explicitly.
It seems there is issue with detecting the correct linker with conda.
Beta Was this translation helpful? Give feedback.
All reactions