Mercurial > projects > ddmd
comparison main.d @ 179:cd48cb899aee
Updated to dmd2.040
author | korDen |
---|---|
date | Sun, 17 Oct 2010 20:56:07 +0400 |
parents | e3afd1303184 |
children | 190ba98276b3 |
comparison
equal
deleted
inserted
replaced
178:e3afd1303184 | 179:cd48cb899aee |
---|---|
335 global.params.cov = 1; | 335 global.params.cov = 1; |
336 ///version (XXX) {// TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS | 336 ///version (XXX) {// TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS |
337 /// else if (arg == "fPIC") | 337 /// else if (arg == "fPIC") |
338 /// global.params.pic = 1; | 338 /// global.params.pic = 1; |
339 ///} | 339 ///} |
340 else if (arg == "map") | |
341 global.params.map = 1; | |
340 else if (arg == "multiobj") | 342 else if (arg == "multiobj") |
341 global.params.multiobj = 1; | 343 global.params.multiobj = 1; |
342 else if (arg == "g") | 344 else if (arg == "g") |
343 global.params.symdebug = 1; | 345 global.params.symdebug = 1; |
344 else if (arg == "gc") | 346 else if (arg == "gc") |
858 } | 860 } |
859 | 861 |
860 if (FileName.equals(ext, global.json_ext)) | 862 if (FileName.equals(ext, global.json_ext)) |
861 { | 863 { |
862 global.params.doXGeneration = 1; | 864 global.params.doXGeneration = 1; |
863 global.params.xfilename = (cast(immutable(char)*)files.data[i])[0..0]; | 865 global.params.xfilename = (cast(String)files.data[i]).str; |
866 continue; | |
867 } | |
868 | |
869 if (FileName.equals(ext, global.map_ext)) | |
870 { | |
871 global.params.mapfile = (cast(String)files.data[i]).str; | |
864 continue; | 872 continue; |
865 } | 873 } |
866 | 874 |
867 version (TARGET_WINDOS) | 875 version (TARGET_WINDOS) |
868 { | 876 { |
869 if (FileName.equals(ext, "res")) | 877 if (FileName.equals(ext, "res")) |
870 { | 878 { |
871 global.params.resfile = (cast(immutable(char)*)files.data[i])[0..0]; /// !!! | 879 global.params.resfile = (cast(String)files.data[i]).str; |
872 continue; | 880 continue; |
873 } | 881 } |
874 | 882 |
875 if (FileName.equals(ext, "def")) | 883 if (FileName.equals(ext, "def")) |
876 { | 884 { |
877 global.params.deffile = (cast(immutable(char)*)files.data[i])[0..0]; | 885 global.params.deffile = (cast(String)files.data[i]).str; |
878 continue; | 886 continue; |
879 } | 887 } |
880 | 888 |
881 if (FileName.equals(ext, "exe")) | 889 if (FileName.equals(ext, "exe")) |
882 { | 890 { |
1051 m.semantic(); | 1059 m.semantic(); |
1052 } | 1060 } |
1053 if (global.errors) | 1061 if (global.errors) |
1054 fatal(); | 1062 fatal(); |
1055 | 1063 |
1064 global.dprogress = 1; | |
1065 Module.runDeferredSemantic(); | |
1066 | |
1056 // Do pass 2 semantic analysis | 1067 // Do pass 2 semantic analysis |
1057 for (int i = 0; i < modules.dim; i++) | 1068 for (int i = 0; i < modules.dim; i++) |
1058 { | 1069 { |
1059 m = cast(Module)modules.data[i]; | 1070 m = cast(Module)modules.data[i]; |
1060 if (global.params.verbose) | 1071 if (global.params.verbose) |