converting gcc option to compatible nvcc option Having a trouble find option in nvcc

I have compiler option as below

gcc -DHAVE_CONFIG_H -I. -I. -I…/…/… -I…/…/…/src/include -I…/…/…/src/spicelib/devices -g -Wall -MT test.o -MD -MP -MF “.deps/test.Tpo” -c -o test.o test.c ;

Trying to compiler it in nvcc as below

gcc -DHAVE_CONFIG_H -I. -I. -I…/…/… -I…/…/…/src/include -I…/…/…/src/spicelib/devices -g -Wall -MT test.o -MD -MP -MF “.deps/test.Tpo” -c -o test.o test.c ;
But compiler complaining about option “-Wall” if I removed it then it complained “-MT, -MD, -MP, -MF”,

If I removed all of these option then it could not compile properly.
Anyone knows how I can pass option to c compiler.

D

You can use the nvcc --compiler-options=’…’ option to pass additional options directly to the host preprocessor or compiler.