Fix fetching the architecture of the target on process launch
Previously it was fetched only if the architecture isn't valid, but the architecture can be valid without containing all information about the current target (e.g. missing os).
Differential D8057
Fix fetching the architecture of the target on process launch tberghammer on Mar 4 2015, 6:17 AM. Authored by
Details Fix fetching the architecture of the target on process launch Previously it was fetched only if the architecture isn't valid, but the architecture can be valid without containing all information about the current target (e.g. missing os).
Diff Detail
Event TimelineComment Actions This one worries me. Every time I have played with this in the past something has gone wrong. See my inline code suggestions above.
Comment Actions I updated the code based on your suggestions with one difference. In Target::MergeArchitecture I always do a merge if the current architecture and the specified architecture is compatible because if the architecture was fully specified then the MergeFrom is a no op and the check you suggested (checking for OS and Vendor) isn't sufficient because in some case (e.g. on android) we still have to update the environment part of the triple. |