GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: search for libnode.so in multiple places · nodejs/node@22e9736

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • install.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/install.py‎

Copy file name to clipboardExpand all lines: tools/install.py
+13-3Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,19 @@ def files(options, action):
181181
link_path = abspath(options.install_path, 'lib/libnode.so')
182182
try_symlink(options, so_name, link_path)
183183
else:
184-
output_lib = 'libnode.' + options.variables.get('shlib_suffix')
185-
action(options, [os.path.join(options.build_dir, output_lib)],
186-
os.path.join(options.variables.get('libdir'), output_lib))
184+
# Ninja and Makefile generators output the library in different directories;
185+
# find out which one we have, and install first found
186+
output_lib_name = 'libnode.' + options.variables.get('shlib_suffix')
187+
output_lib_candidate_paths = [
188+
os.path.join(options.build_dir, output_lib_name),
189+
os.path.join(options.build_dir, "lib", output_lib_name),
190+
]
191+
try:
192+
output_lib = next(filter(os.path.exists, output_lib_candidate_paths))
193+
except StopIteration as not_found:
194+
raise RuntimeError("No libnode.so to install!") from not_found
195+
action(options, [output_lib],
196+
os.path.join(options.variables.get('libdir'), output_lib_name))
187197

188198
action(options, [os.path.join(options.v8_dir, 'tools/gdbinit')], 'share/doc/node/')
189199
action(options, [os.path.join(options.v8_dir, 'tools/lldb_commands.py')], 'share/doc/node/')

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.