File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 113
113
expanded . merge! ( common )
114
114
mkconfig . merge! ( common )
115
115
116
+ # We use -I$(<D) (the directory portion of the prerequisite - i.e. the
117
+ # C or C++ file) to add the file's path as the first entry on the
118
+ # include path. This is to ensure that files from the source file's
119
+ # directory are include in preference to others on the include path,
120
+ # and is required because we are actually piping the file into the
121
+ # compiler which disables this standard behaviour of the C preprocessor.
116
122
mkconfig [ 'COMPILE_C' ] = "ruby #{ cext_dir } /preprocess.rb $< | $(CC) -I$(<D) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG) -xc - -o $@ && #{ opt } #{ opt_passes } $@ -o $@"
117
123
mkconfig [ 'COMPILE_CXX' ] = "ruby #{ cext_dir } /preprocess.rb $< | $(CXX) -I$(<D) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG) -xc++ - -o $@ && #{ opt } #{ opt_passes } $@ -o $@"
118
124
You can’t perform that action at this time.
0 commit comments