HaxeFoundation / hxcpp

Runtime files for c++ backend for haxe
Other
298 stars 189 forks source link

FreeBSD, Could not find include file "toolchain/null-toolchain.xml" #1089

Open devosalain opened 9 months ago

devosalain commented 9 months ago

My build.hxml is :


--main Main 
--cpp cpp
-D HXCPP_M64

haxe build.hxml , runs fine on arch-linux , but on FreeBSD 14.0-RELEASE-p3 it returns,


...
cpp/include/Reflect.h
cpp/include
cpp
haxelib run hxcpp Build.xml haxe -DHXCPP_M64="1" -Dhaxe="5.0.0-alpha.1" -Dhaxe3="1" -Dhaxe4="1" -Dhaxe_ver="5.000" -Dhxcpp_api_level="430" -Dhxcpp_smart_strings="1" -Dsource_header="Generated by Haxe 5.0.0-alpha.1" -Dstatic="1" -Dtarget.atomics="1" -Dtarget.name="cpp" -Dtarget.static="1" -Dtarget.sys="1" -Dtarget.threaded="1" -Dtarget.unicode="1" -Dtarget.utf16="1" -Dutf16="1" -I -I/usr/local/share/haxe/std/cpp/_std/ -I/usr/local/share/haxe/std/
Error: Could not find include file "toolchain/null-toolchain.xml"
Error: Build failed
tobil4sk commented 9 months ago

Looks like hxcpp doesn't support FreeBSD currently: https://github.com/HaxeFoundation/hxcpp/issues/277

barisyild commented 1 week ago

Actually hxcpp is supported by PS4/PS5 and these consoles use FreeBSD based operating systems. ORBIS definition might work for FreeBSD compilation.

https://github.com/HaxeFoundation/hxcpp/blob/54af892be2ca4c63988c99c9c524431af6c6f036/src/hx/Date.cpp#L363