Skip to content

Commit

Permalink
posix compatibility: avoid grep GNU extension (JuliaLang#53400)
Browse files Browse the repository at this point in the history
the `.\+` meta-character is a GNU extension. prefer to use the POSIX
equivalent `..*` to work with `grep` on wider platforms.

it is part of on-going work to port julia to OpenBSD.
  • Loading branch information
semarie authored and tecosaur committed Mar 4, 2024
1 parent f9f7f25 commit b9346fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ $(BUILDDIR)/jl_internal_funcs.inc: $(SRCDIR)/jl_exported_funcs.inc
# to have a `ijl_` prefix instead of `jl_`, to denote that they are coming from `libjulia-internal`. This avoids
# potential confusion with debugging tools, when inspecting a process that has both `libjulia` and `libjulia-internal`
# loaded at the same time.
grep 'XX(.\+)' $< | sed -E 's/.*XX\((.+)\).*/#define \1 i\1/g' >$@
grep 'XX(..*)' $< | sed -E 's/.*XX\((.+)\).*/#define \1 i\1/g' >$@

# source file rules
$(BUILDDIR)/%.o: $(SRCDIR)/%.c $(HEADERS) | $(BUILDDIR)
Expand Down

0 comments on commit b9346fa

Please sign in to comment.