Xuhpclab / DrCCTProf

DrCCTProf is a fine-grained call path profiling framework for binaries running on ARM and X86 architectures.
MIT License
117 stars 37 forks source link

support cmake3.18+ (#9) #17

Closed dolanzhao closed 4 years ago

dolanzhao commented 4 years ago

To support NinJa, cmake 3.18+ changed generated defined flags for asm compiling. Specifically, it replaces "-D" with "--defsym" in flags.make. Dynamorio did not update for handling this change.

Without changing the compilation architecture of dynamorio, we fix this error by using a temp solution that is just running a script to replace "--defsym " to "-D" between cmake and make.