Identical build on different systems

前端 未结 3 2085
攒了一身酷
攒了一身酷 2020-12-20 21:49

I have 3 build machines. One running on windows 2000, one with XP SP3 and one with 64bit Windows Server 2008. And I have a native C++ project to build (I\'m building with vi

相关标签:
3条回答
  • 2020-12-20 22:25

    Is Windows Server 2008 the only machine running 64 bit? If it is, that could be your problem.

    0 讨论(0)
  • 2020-12-20 22:29

    Do you run the same version of the chain tool (compiler, linker, ...), included 32/64 bits difference?

    0 讨论(0)
  • 2020-12-20 22:49

    You might think that compiling is purely deterministic (identical inputs give identical output, every time) but this need not be the case. For example, consider the optimiser - this is going to need some memory to work in, probably more for higher optimisation methods. If on one machine a memory allocation fails (because the machine has less memory) then the compiler could omit that specific optimisation, resulting in different code being emitted.

    There are a lot of similar situations, so you may be putting a lot of effort into something that is not doable. Why do you need the DLLs to be bitwise identical, anyway?

    0 讨论(0)
提交回复
热议问题