Changeset 550
- Timestamp:
- 02/14/09 00:04:33 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interpreter/trunk/modules/System/package/builder.kt
r549 r550 76 76 ) 77 77 [ 78 property cflags; 79 decide [ 80 (options.file_cflags[lib_file] is System.null) [ cflags = ""; ], 81 true [ cflags = options.file_cflags[lib_file]; ] 82 ]; 83 78 84 decide [ 79 85 (not ((make System.regex("\\.kt$"))|match(lib_file) is System.null)) … … 87 93 [ 88 94 # C++ file. 89 run_command_with_echo("%s %s -c %s"|format([95 run_command_with_echo("%s %s %s -c %s"|format([ 90 96 System.compile_options.build_cplusplus, 91 97 System.compile_options.build_cxxflags, 98 cflags, 92 99 lib_file])); 93 100 ], 94 101 true [ 95 102 # C file. 96 run_command_with_echo("%s %s -c %s"|format([103 run_command_with_echo("%s %s %s -c %s"|format([ 97 104 System.compile_options.build_cc, 98 105 System.compile_options.build_cxxflags, 106 cflags, 99 107 lib_file])); 100 108 ] … … 161 169 162 170 # Link library. 171 property ldflags; 172 decide [ 173 (options.library_ldflags[lib] is System.null) [ ldflags = ""; ], 174 true [ ldflags = options.library_ldflags[lib]; ] 175 ]; 163 176 decide [ 164 177 (compile_outputs != "") [ 165 run_command_with_echo("%s %s %s -o dist/%s %s"|format([178 run_command_with_echo("%s %s %s %s -o dist/%s %s"|format([ 166 179 System.compile_options.build_cc, 167 180 System.compile_options.build_ldflags, 168 181 System.compile_options.build_dylib_flags, 182 ldflags, 169 183 ((make System.regex("\\."))|replace(lib, "/") + System.compile_options.build_dylib_extension), 170 184 compile_outputs
Note: See TracChangeset
for help on using the changeset viewer.
