Changeset 2169
- Timestamp:
- 11/16/10 15:39:33 (2 years ago)
- Files:
-
- trunk/tools/rdmd.d (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/rdmd.d
r1400 r2169 129 129 130 130 // Compute the object directory and ensure it exists 131 i nvariantobjDir = getObjPath(root, compilerFlags);131 immutable objDir = getObjPath(root, compilerFlags); 132 132 if (!dryRun) // only make a fuss about objDir on a real run 133 133 { … … 172 172 (myModules.keys).length) 173 173 { 174 i nvariantresult = rebuild(root, exe, objDir, myModules, compilerFlags,174 immutable result = rebuild(root, exe, objDir, myModules, compilerFlags, 175 175 addStubMain); 176 176 if (result) return result; … … 181 181 } 182 182 183 bool inALibrary( instring source, in string object)183 bool inALibrary(string source, in string object) 184 184 { 185 185 // Heuristics: if source starts with "std.", it's in a library … … 221 221 context.update(getcwd); 222 222 context.update(root); 223 foreach ( flag; compilerFlags) {223 foreach (string flag; compilerFlags) { 224 224 if (find(irrelevantSwitches, flag).length) continue; 225 225 context.update(flag); … … 261 261 } 262 262 263 i nvariantresult = run(todo);263 immutable result = run(todo); 264 264 if (result) 265 265 { … … 299 299 string[string] myModules;// = [ rootModule : d2obj(rootModule) ]; 300 300 // Must collect dependencies 301 i nvariantdepsGetter = /*"cd "~shellQuote(rootDir)~" && "301 immutable depsGetter = /*"cd "~shellQuote(rootDir)~" && " 302 302 ~*/compiler~" "~join(compilerFlags, " ") 303 303 ~" -v -o- "~shellQuote(rootModule) … … 321 321 { 322 322 if (!pattern.test(line)) continue; 323 i nvariantmoduleName = pattern[1], moduleSrc = pattern[2];323 immutable moduleName = pattern[1], moduleSrc = pattern[2]; 324 324 if (inALibrary(moduleName, moduleSrc)) continue; 325 i nvariantmoduleObj = d2obj(moduleSrc);325 immutable moduleObj = d2obj(moduleSrc); 326 326 myModules[/*rel2abs*/join(rootDir, moduleSrc)] = moduleObj; 327 327 }
