|
69 | 69 | '-mllvm -lto-embed-bitcode=post-merge-pre-opt passed in the distributed '
|
70 | 70 | 'case, or -Wl,--save-temps=import and -Wl,--thinlto-emit-index-files '
|
71 | 71 | 'passed in the local case.')
|
72 |
| -flags.mark_flags_as_required(['output_dir']) |
73 |
| - |
74 | 72 | flags.DEFINE_string(
|
75 | 73 | 'cmd_section_name', '.llvmcmd',
|
76 | 74 | 'The section name passed to llvm-objcopy. For ELF object files, the '
|
77 | 75 | 'default .llvmcmd is correct. For Mach-O object files, one should use '
|
78 | 76 | 'something like __LLVM,__cmdline')
|
79 |
| - |
80 | 77 | flags.DEFINE_string(
|
81 | 78 | 'bitcode_section_name', '.llvmbc',
|
82 | 79 | 'The section name passed to llvm-objcopy. For ELF object files, the '
|
83 | 80 | 'default .llvmbc is correct. For Mach-O object files, one should use '
|
84 | 81 | '__LLVM,__bitcode')
|
85 | 82 |
|
| 83 | +flags.mark_flag_as_required('output_dir') |
| 84 | + |
86 | 85 | FLAGS = flags.FLAGS
|
87 | 86 |
|
88 | 87 |
|
@@ -114,7 +113,7 @@ def main(argv):
|
114 | 113 | FLAGS.output_dir)
|
115 | 114 | elif FLAGS.input_type == 'directory':
|
116 | 115 | logging.warning(
|
117 |
| - 'Using the directory input is only reccomended if the build system' |
| 116 | + 'Using the directory input is only recommended if the build system' |
118 | 117 | 'your project uses does not support any structured output that'
|
119 | 118 | 'ml-compiler-opt understands. If your build system provides a'
|
120 | 119 | 'structured compilation database, use that instead')
|
|
0 commit comments