3

I use Qt, clang and lld. Is there any way to generate .map in my case?
-Wl,-Map=output.map didn't work out for me.

Thanks in advance

a_c
  • 61
  • 1
  • 7

2 Answers2

3

In a case if someone will face this problem.

$(LDFLAGS_MOD) -lm -Wl,-map,$@.map $(LDFLAGS_EXTRA) 

helped me

a_c
  • 61
  • 1
  • 7
3

I have use

-Wl,-Map,output.map

(-Map with capital letter M) works for me in Clang linker flags.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 27 '22 at 12:18