File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ mjit_config.h: Makefile
224
224
# Other `-Dxxx`s preceding `-DMJIT_HEADER` will be removed in transform_mjit_header.rb.
225
225
# So `-DMJIT_HEADER` should be passed first when rb_mjit_header.h is generated.
226
226
$(TIMESTAMPDIR)/$(MJIT_HEADER:.h =)$(MJIT_HEADER_SUFFIX ) .time: probes.h vm.$(OBJEXT ) \
227
- $(TIMESTAMPDIR ) /$(arch ) /.time $(srcdir ) /tool/mjit_without_tabs .rb
227
+ $(TIMESTAMPDIR ) /$(arch ) /.time $(srcdir ) /tool/mjit_tabs .rb
228
228
$(ECHO) building $(@F:.time=.h)
229
- $(Q) $(BASERUBY) $(srcdir)/tool/mjit_without_tabs .rb "$(MJIT_WITHOUT_TABS )" \
229
+ $(Q) $(BASERUBY) $(srcdir)/tool/mjit_tabs .rb "$(MJIT_TABS )" \
230
230
$(CPP) -DMJIT_HEADER $(MJIT_HEADER_FLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/vm.c $(CPPOUTFLAG)$(@F:.time=.h).new
231
231
$(Q) $(IFCHANGE) "--timestamp=$@" $(@F:.time=.h) $(@F:.time=.h).new
232
232
Original file line number Diff line number Diff line change @@ -2616,9 +2616,9 @@ AS_CASE(["$target_os"],
2616
2616
LIBEXT=a
2617
2617
2618
2618
AC_ARG_WITH ( mjit-tabs ,
2619
- AS_HELP_STRING ( [ --without-tabs- mjit] , [ expand tabs in mjit header] ) ,
2620
- [ AS_IF ( [ test $withval = no] , [ MJIT_WITHOUT_TABS=true ] ) ] )
2621
- AC_SUBST ( MJIT_WITHOUT_TABS ) dnl
2619
+ AS_HELP_STRING ( [ --without-mjit-tabs ] , [ expand tabs in mjit header] ) ,
2620
+ [ AS_IF ( [ test $withval = no] , [ MJIT_TABS=false ] ) ] )
2621
+ AC_SUBST ( MJIT_TABS ) dnl
2622
2622
AC_SUBST ( DLDFLAGS ) dnl
2623
2623
AC_SUBST ( ARCH_FLAG ) dnl
2624
2624
AC_SUBST ( MJIT_HEADER_FLAGS ) dnl
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ MJIT_HEADER = rb_mjit_header.h
102
102
MJIT_MIN_HEADER_NAME = rb_mjit_min_header-$(RUBY_PROGRAM_VERSION ) .h
103
103
MJIT_MIN_HEADER = $(MJIT_HEADER_BUILD_DIR ) /$(MJIT_MIN_HEADER_NAME )
104
104
MJIT_HEADER_BUILD_DIR = $(EXTOUT ) /include/$(arch )
105
- MJIT_WITHOUT_TABS =@MJIT_WITHOUT_TABS @
105
+ MJIT_TABS =@MJIT_TABS @
106
106
LDFLAGS = @STATIC@ $(CFLAGS ) @LDFLAGS@
107
107
EXTLDFLAGS = @EXTLDFLAGS@
108
108
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS )
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
# This is a script to run a command in ARGV, expanding tabs in some files
3
- # included by vm.c to normalize indentation of MJIT header. You can disable
4
- # this feature by setting MJIT_WITHOUT_TABS=false make variable .
3
+ # included by vm.c to normalize indentation of MJIT header. You can enable
4
+ # this feature by passing `--without-mjit-tabs` in configure .
5
5
#
6
6
# Note that preprocessor of GCC converts a hard tab to one spaces, where
7
7
# we expect it to be shown as 8 spaces. To obviate this script, we need
27
27
sources = { }
28
28
mtimes = { }
29
29
30
- flag , *command = ARGV
30
+ mjit_tabs , *command = ARGV
31
31
32
32
targets . each do |target |
33
- next if flag != 'true '
33
+ next if mjit_tabs != 'false '
34
34
unless File . writable? ( target )
35
35
puts "tool/mjit_without_tabs.rb: Skipping #{ target . dump } as it's not writable."
36
36
next
You can’t perform that action at this time.
0 commit comments