Re: [PATCH 0/2] Reduce the ASSERT patch to save the binary size
Michael D Kinney
Guomin,
toggle quoted messageShow quoted text
I think there is a cleaner solution to this problem using compiler flags to change the contents of the __FILE__ macro. https://blog.conan.io/2019/09/02/Deterministic-builds-with-C-C++.html https://reproducible-builds.org/docs/build-path/ https://developercommunity.visualstudio.com/t/map-file-to-a-relative-path/1393881 I found this content when I was working on the CompareBuild tool and using these techniques can guarantee the same binaries are produced when the path to WORKSPACE is different on different build systems. Does your change provide a module-relative, package-relative, or workspace-relative file path in the ASSERT()? How does ASSERT() in autogen work? Thanks, Mike
-----Original Message-----
|
|