Generate .map file with clang and lld

Viewed 1492

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

2 Answers

In a case if someone will face this problem.

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

helped me

I have use

-Wl,-Map,output.map

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

Related