@@ -5,9 +5,6 @@ const fs = require('fs');
5
5
const path = require ( 'path' ) ;
6
6
const child_process = require ( 'child_process' ) ;
7
7
8
- const linux = require ( './linux' ) ;
9
- const darwin = require ( './darwin' ) ;
10
- const freebsd = require ( './freebsd' ) ;
11
8
const lldb = require ( './lldb' ) ;
12
9
13
10
function main ( ) {
@@ -40,6 +37,7 @@ function configureInstallation(osName, buildDir) {
40
37
let prefix ; // Similar to what `llvm-config --prefix` returns
41
38
42
39
if ( osName === 'Darwin' ) {
40
+ const darwin = require ( './darwin' ) ;
43
41
installation = darwin . getLldbInstallation ( ) ;
44
42
prefix = installation . prefix ;
45
43
if ( prefix === undefined ) { // Using Xcode installation
@@ -52,6 +50,7 @@ function configureInstallation(osName, buildDir) {
52
50
writeConfig ( config ) ;
53
51
}
54
52
} else if ( osName === 'Linux' ) {
53
+ const linux = require ( './linux' ) ;
55
54
installation = linux . getLldbInstallation ( ) ;
56
55
if ( installation . prefix === undefined )
57
56
// Could not find the headers, need to download them
@@ -62,6 +61,7 @@ function configureInstallation(osName, buildDir) {
62
61
// ./lldb will always be linked to the prefix on Linux
63
62
writeConfig ( { } ) ;
64
63
} else if ( osName === 'FreeBSD' ) {
64
+ const freebsd = require ( './freebsd' ) ;
65
65
installation = freebsd . getLldbInstallation ( ) ;
66
66
prefix = installation . prefix ;
67
67
// ./lldb will always be linked to the prefix
0 commit comments