mmm..I think I won't be able to build edk2 with a different clang toolchain, sorry from what I read it seems too far for my knowledge. Since as you pointed out this should be related to optimization taking place for the release version, is there a way, if you know and if it's possible, to disable optimization, or set different optimization levels when building edk2 with the actual clang?