Top Level Namespace

Defined Under Namespace

Modules: Rubino

Instance Method Summary collapse

Instance Method Details

#write_noop_makefile(reason) ⇒ Object

A Makefile that satisfies ‘make` / `make install` with no work, so `gem install` always succeeds even when we can’t build the helper.



19
20
21
22
23
24
25
26
27
28
29
30
# File 'ext/landlock/extconf.rb', line 19

def write_noop_makefile(reason)
  warn "rubino-landlock: skipping native helper build (#{reason}); " \
       "the Linux OS write-sandbox will be unavailable (fail-open)."
  File.write("Makefile", <<~MAKE)
    all:
    \t@true
    install:
    \t@true
    clean:
    \t@true
  MAKE
end