MCPcopy Index your code
hub / github.com/nodejs/node / configure_section_file

Function configure_section_file

configure.py:2716–2740  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

2714 o['variables']['v8_enable_inspector'] = 0 if disable_inspector else 1
2715
2716def configure_section_file(o):
2717 try:
2718 proc = subprocess.Popen(['ld.gold'] + ['-v'], stdin = subprocess.PIPE,
2719 stdout = subprocess.PIPE, stderr = subprocess.PIPE)
2720 except OSError:
2721 if options.node_section_ordering_info != "":
2722 warn('''No acceptable ld.gold linker found!''')
2723 return 0
2724
2725 with proc:
2726 match = re.match(r"^GNU gold.*([0-9]+)\.([0-9]+)$",
2727 proc.communicate()[0].decode("utf-8"))
2728
2729 if match:
2730 gold_major_version = match.group(1)
2731 gold_minor_version = match.group(2)
2732 if int(gold_major_version) == 1 and int(gold_minor_version) <= 1:
2733 error(''&#x27;GNU gold version must be greater than 1.2 in order to use section
2734 reordering''&#x27;)
2735
2736 if options.node_section_ordering_info != "":
2737 o['variables']['node_section_ordering_info'] = os.path.realpath(
2738 str(options.node_section_ordering_info))
2739 else:
2740 o['variables']['node_section_ordering_info'] = ""
2741
2742def make_bin_override():
2743 if sys.platform == 'win32':

Callers 1

configure.pyFile · 0.85

Calls 7

intFunction · 0.85
strFunction · 0.85
warnFunction · 0.70
errorFunction · 0.70
matchMethod · 0.65
decodeMethod · 0.65
realpathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…