Fatal error on 'mold -run --no-threads g++ ...' #1439
Replies: 1 comment
-
|
Yes, passing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
thank you rui314 for your efforts in providing a fast linker. The world needs more crucial software written with performance in mind.
I am trying to do some profiling on mold itself and thus want to pass --no-threads to mold to stack-sample a single thread. However, the command
mold -run --no-threads g++ ...gives me:
mold: fatal: mold -run failed: --no-threads: No such file or directoryDo these two options somehow compose and if not, is there a way to indirectly pass --no-threads via the compiler to mold?
Thank you!
EDIT: According to gprofng's report, passing --no-threads at the very end of the g++ build command as -Wl,--no-threads seems to do the trick. I guess with this this thread can already be closed except there is a better way to do it.
Beta Was this translation helpful? Give feedback.
All reactions