Skip to content

Commit

Permalink
Remove unused #include <trufflenfi.h> in truffleposix.c
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed May 27, 2022
1 parent 18f5c8a commit 012ae87
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions mx.truffleruby/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,11 @@
"native": True,
"dir": "src/main/c",
"buildDependencies": [
"truffle:TRUFFLE_NFI_NATIVE", # trufflenfi.h
"sulong:SULONG_BOOTSTRAP_TOOLCHAIN", # graalvm-native-clang
"sulong:SULONG_HOME", # polyglot.h
"TRUFFLERUBY-BOOTSTRAP-LAUNCHER",
],
"buildEnv": {
"NFI_HEADERS_DIR": "<path:truffle:TRUFFLE_NFI_NATIVE>/include",
"TRUFFLERUBY_BOOTSTRAP_LAUNCHER": "<path:TRUFFLERUBY-BOOTSTRAP-LAUNCHER>/miniruby",
"GRAALVM_TOOLCHAIN_CC": "<toolchainGetToolPath:native,CC>",
},
Expand Down
2 changes: 1 addition & 1 deletion src/main/c/truffleposix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ libtruffleposix.$(SOEXT): truffleposix.o Makefile
$(Q) $(CC) -shared $(LDFLAGS) -o $@ $<

truffleposix.o: truffleposix.c Makefile
$(Q) $(CC) -o $@ -c $(CFLAGS) $(LDFLAGS) -I$(NFI_HEADERS_DIR) -I$(RUBY_HDR_DIR) $<
$(Q) $(CC) -o $@ -c $(CFLAGS) $(LDFLAGS) -I$(RUBY_HDR_DIR) $<
2 changes: 0 additions & 2 deletions src/main/c/truffleposix/truffleposix.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ SUCH DAMAGE.
#include <sys/sysmacros.h>
#endif

#include <trufflenfi.h>

struct truffleposix_stat {
uint64_t atime;
uint64_t mtime;
Expand Down

0 comments on commit 012ae87

Please sign in to comment.