55
56 int threads = Integer.min(COMPILER_THREADS, Runtime.getRuntime().availableProcessors());
57
58 boolean ignoreClassLoadingErrors;
59 boolean exitOnError;
60 boolean info;
61 boolean verbose;
62 boolean debug;
63 boolean help;
64 boolean version;
65 boolean compileWithAssertions;
66 boolean tiered;
67
68 private String defaultOutputName() {
69 osName = System.getProperty("os.name");
70 String name = "unnamed.";
71 String ext;
72
73 switch (osName) {
74 case "Linux":
75 case "SunOS":
76 ext = "so";
77 break;
78 case "Mac OS X":
79 ext = "dylib";
80 break;
81 default:
82 if (osName.startsWith("Windows")) {
83 ext = "dll";
84 } else {
85 ext = "so";
86 }
87 }
88
89 return name + ext;
90 }
91
92 static class BadArgs extends Exception {
93 private static final long serialVersionUID = 1L;
94 final String key;
95 final Object[] args;
|
55
56 int threads = Integer.min(COMPILER_THREADS, Runtime.getRuntime().availableProcessors());
57
58 boolean ignoreClassLoadingErrors;
59 boolean exitOnError;
60 boolean info;
61 boolean verbose;
62 boolean debug;
63 boolean help;
64 boolean version;
65 boolean compileWithAssertions;
66 boolean tiered;
67
68 private String defaultOutputName() {
69 osName = System.getProperty("os.name");
70 String name = "unnamed.";
71 String ext;
72
73 switch (osName) {
74 case "Linux":
75 ext = "so";
76 break;
77 case "Mac OS X":
78 ext = "dylib";
79 break;
80 default:
81 if (osName.startsWith("Windows")) {
82 ext = "dll";
83 } else {
84 ext = "so";
85 }
86 }
87
88 return name + ext;
89 }
90
91 static class BadArgs extends Exception {
92 private static final long serialVersionUID = 1L;
93 final String key;
94 final Object[] args;
|