Closed GAMMACASE closed 11 months ago
I've also committed small change in regards to addCopy
being non implemented in the vs generator resulting in errors thrown when packagescripts are executed, since they utilize the Generator::AddCopy
API
Sorry for the delay here, thanks for doing this!
This adds compiler arch lookup to target correct platform arch, so the end project would be correctly generated for x64 projects. Previously it would end up generating x86 vcxproj files no matter what for a few reasons:
Compiler::clone
function that's commonly used through out the metamod & sourcemod and other solutions (example: https://github.com/alliedmodders/metamod-source/blob/2261ff4f9c898933e02363f337de4f0dff77e687/AMBuildScript#L347 https://github.com/alliedmodders/sourcemod/blob/20aae06f127d021734ee2ff8b9664907ca7ea752/AMBuildScript#L536-L546 etc) doesn't respect thetarget.arch
and doesn't pass it to the newly created instance which expectstarget_arch
, resulting in further code in build scripts to target x86 instead of what was asked for. Fixing this correctly respects the target arch of the compiler.