You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try compiling Mold 2.4.0 using zig c++ and it will return an error:
[ 24%] Building CXX object CMakeFiles/mold.dir/cmake_pch.hxx.pch
error: language 'h' is unsupported in this context
Removing all instances of -x c++-header from mold-2.4.0/CMakeFiles/mold.dir/build.make suppresses the error, so the problem might be because c++-header does not map to .hxx in the Zig compiler.
Expected Behavior
Compilation should proceed normally.
The text was updated successfully, but these errors were encountered:
absolutelynothinghere
changed the title
Compiling Mold with zig c++ fails, likely due to -x <language flag
Compiling Mold with zig c++ fails, likely due to -x <language> flag
Dec 22, 2023
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
Try compiling Mold 2.4.0 using
zig c++
and it will return an error:Removing all instances of
-x c++-header
frommold-2.4.0/CMakeFiles/mold.dir/build.make
suppresses the error, so the problem might be becausec++-header
does not map to.hxx
in the Zig compiler.Expected Behavior
Compilation should proceed normally.
The text was updated successfully, but these errors were encountered: