Logo
Explore Help
Sign In
Mirrors/pyenv
1
0
Fork 0
You've already forked pyenv
mirror of https://github.com/pyenv/pyenv.git synced 2026-02-06 10:47:35 +09:00
Code Issues Packages Projects Releases Wiki Activity
pyenv/src/Makefile

11 lines
219 B
Makefile
Raw Normal View History

Speed up `realpath()` with dynamically loaded C extension On systems that support both C compiling and dynamic loading, we can speed up `realpath()` (where most time in rbenv is spent) by replacing it with a dynamically loaded bash builtin. When `make -C src` is called in the project's root, `libexec/rbenv-realpath.dylib` will be created. If it exists, rbenv will attempt to load it as a builtin command. If it fails, execution will fall back to the old `realpath()` shell function.
2014-01-03 21:25:18 +01:00
SHOBJ_LDFLAGS = -dynamiclib -current_version 1.0
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
../libexec/rbenv-realpath.dylib: realpath.o
$(CC) $(CFLAGS) $(SHOBJ_LDFLAGS) -o $@ realpath.o
clean:
rm -f *.o ../libexec/*.dylib
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 27ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API