Getting bc files of some multithreading workloads

Hi
I am trying to generate bc files from some workloads like redis, nginx and mysql.Now, I have got some of them by changing makefiles of redis and nginx. However,when I use the same method to complie Mysql, I find its makefile can only be generated by cmake. The problem is the makefile generated by cmake is too complicated to understand it.
1.Has anyone tried to get bc files by changing makefiles?
2.Are there any other ways to generate these files?
Thanks in advance.

Hi,

Hi
I am trying to generate bc files from some workloads like redis, nginx and mysql.Now, I have got some of them by changing makefiles of redis and nginx. However,when I use the same method to complie Mysql, I find its makefile can only be generated by cmake. The problem is the makefile generated by cmake is too complicated to understand it.

I don’t what kind of change you’re doing, but you probably should do it at the CMake level.

1.Has anyone tried to get bc files by changing makefiles?
2.Are there any other ways to generate these files?

If you’re trying to get bitcode for the full MySQL program, I’d go with an LTO build. The input files to the linker will be bitcode, and the linker can dump the merged bitcode.