File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ clean:
129
129
$(RM ) -r docs/_build
130
130
131
131
autogenerated-config.h : $(addprefix $(srcdir ) ,generate-config-h.py configbuilder.py)
132
- $(PYTHON ) $< -o $@ --gcc=$(CC )
132
+ $(PYTHON ) $< -o $@ --gcc=" $( CC) " --plugindir= " $( GCCPLUGINS_DIR ) "
133
133
134
134
autogenerated-% .txt : $(srcdir ) % .txt.in
135
135
$(CPP ) $(CPPFLAGS ) -x c-header $^ -o $@
Original file line number Diff line number Diff line change @@ -25,13 +25,18 @@ def __init__(self, argv):
25
25
import argparse
26
26
parser = argparse .ArgumentParser ()
27
27
parser .add_argument ('--gcc' )
28
+ parser .add_argument ('--plugindir' )
28
29
args , argv = parser .parse_known_args (argv )
29
30
ConfigBuilder .__init__ (self , argv )
30
31
self .gcc = args .gcc
32
+ self .plugindir = args .plugindir
31
33
32
34
def main (self ):
33
35
prefix = 'GCC_PYTHON_PLUGIN_CONFIG_'
34
- plugindir = self .capture_shell_output ('locating plugin directory for %s' % self .gcc ,
36
+ if self .plugindir :
37
+ plugindir = self .plugindir
38
+ else :
39
+ plugindir = self .capture_shell_output ('locating plugin directory for %s' % self .gcc ,
35
40
'%s --print-file-name=plugin' % self .gcc ).strip ()
36
41
extraargs = ['-I%s' % os .path .join (plugindir , 'include' )]
37
42
self .test_for_mandatory_c_header ('gcc-plugin.h' , extraargs )
You can’t perform that action at this time.
0 commit comments