| 2714 | o['variables']['v8_enable_inspector'] = 0 if disable_inspector else 1 |
| 2715 | |
| 2716 | def 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('''GNU gold version must be greater than 1.2 in order to use section |
| 2734 | reordering''') |
| 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 | |
| 2742 | def make_bin_override(): |
| 2743 | if sys.platform == 'win32': |