GCC dependency generation for a different output directory

后端 未结 7 440
深忆病人
深忆病人 2021-01-30 14:30

I\'m using GCC to generate a dependency file, but my build rules put the output into a subdirectory. Is there a way to tell GCC to put my subdirectory prefix in the dependency f

7条回答
  •  终归单人心
    2021-01-30 15:02

    If there is an argument to GCC to do this, I don't know what it is. We end up piping the dependency output through sed to rewrite all occurrences of .o as ${OBJDIR}/.o.

提交回复
热议问题