cppinsights icon indicating copy to clipboard operation
cppinsights copied to clipboard

error: unknown argument: '-mno-sched-prolog'

Open fang13 opened this issue 2 years ago • 2 comments

when i use insights to parse a cpp file,some errors happen like error: unknown argument: '-mno-sched-prolog' error: unknown argument: '-fno-partial-inlining'

(The compiler in compile_command.json is 'arm-linux-gnueabi-g++')

how to solve this question?

fang13 avatar May 12 '22 03:05 fang13

Hello @fang13,

arm-linux-gnueabi-g++ sounds to me like this json file was produced with a g++ compiler? If so, then I guess there are command line options which Clang doesn't understand. The fix would be deleting them from the json file.

Andreas

andreasfertig avatar May 12 '22 07:05 andreasfertig

Thanks for contributing to this issue. As it has been 60 days since the last activity waiting for a followup. This issue will be automatically closed in 7 days, if no further activity occurs. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed. We'll gladly take a look again! In any case, thank you for your contributions!

stale[bot] avatar Sep 21 '22 05:09 stale[bot]