loongson-community / linux-stable

Linux kernel source tree for Loongson
Other
67 stars 21 forks source link

[Kernel] unknown argument: '-fno-tree-scev-cprop' #12

Open xiangzhai opened 6 years ago

xiangzhai commented 6 years ago

Hi Loonger,

...
CC      drivers/gpu/drm/smi/smi_drv.o
clang-7: error: unknown argument: '-fno-tree-scev-cprop'
scripts/Makefile.build:296: recipe for target 'drivers/gpu/drm/smi/smi_drv.o' failed
make[4]: *** [drivers/gpu/drm/smi/smi_drv.o] Error 1
...

Regards, Leslie Zhai

nickdesaulniers commented 6 years ago

That's fine, kbuild has cc-option macros to only use flags if the compiler understands it. Unless we really need that compiler option implemented in clang?

xiangzhai commented 6 years ago

Hi @nickdesaulniers

Thanks for your response!

Unless we really need that compiler option implemented in clang?

It doesn't need to implement it in the Compiler side, I will change the macros in the Kernel side.

Regards, Leslie Zhai