You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2006/11/10 15:33:28 UTC

svn commit: r473351 - in /incubator/stdcxx/trunk/etc/config: src/EXPORT.cpp windows/configure.wsf windows/projects.js

Author: faridz
Date: Fri Nov 10 06:33:27 2006
New Revision: 473351

URL: http://svn.apache.org/viewvc?view=rev&rev=473351
Log:
2006-11-10 Farid Zaripov <fa...@kyiv.vdiweb.com>

	* EXPORT.cpp: Added "./" in LDOPTS.
	* configure.wsf (runExeTests): Added replacing ".o" with ".obj" in LDOPTS
	(compileFiles): Reused srcsArr instead of srcs
	* projects.wsf (CreateProjectsDefs): Removed extra '\' in command line

Modified:
    incubator/stdcxx/trunk/etc/config/src/EXPORT.cpp
    incubator/stdcxx/trunk/etc/config/windows/configure.wsf
    incubator/stdcxx/trunk/etc/config/windows/projects.js

Modified: incubator/stdcxx/trunk/etc/config/src/EXPORT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/EXPORT.cpp?view=diff&rev=473351&r1=473350&r2=473351
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXPORT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/EXPORT.cpp Fri Nov 10 06:33:27 2006
@@ -9,7 +9,7 @@
 
 // establish a dependency on EXPORT_KEYWORD.cpp which must be
 // compiled first since it defines the exported function template
-// LDOPTS = EXPORT_KEYWORD.o 
+// LDOPTS = ./EXPORT_KEYWORD.o 
 #endif   // _RWSTD_NO_EXPORT_KEYWORD
 
 

Modified: incubator/stdcxx/trunk/etc/config/windows/configure.wsf
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/configure.wsf?view=diff&rev=473351&r1=473350&r2=473351
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/configure.wsf (original)
+++ incubator/stdcxx/trunk/etc/config/windows/configure.wsf Fri Nov 10 06:33:27 2006
@@ -823,12 +823,13 @@
                 var fileBase = stageDir + "\\" + base;
                 var modules =  fileBase + ".obj";
                 var ldopts = 
-                    (/^[^A-Z_a-z0-9]*LDOPTS\s*=\s*(.*)$/m).exec(srcText);
+                    (/^[^A-Z_a-z0-9]*LDOPTS\s*=\s*(\S*)\s*$/m).exec(srcText);
                 if (ldopts != null)
                 {
                     // remove first "./" and replace $(LIBSUFFIX) with .lib
-                    modules += " " + ldopts[1].replace(/^\.\//, 
-                        stageDir + "\\").replace(/\$\(LIBSUFFIX\)/, ".lib");
+                    // and replace .o with .obj
+                    modules += " " + ldopts[1].replace(/^\.\//, stageDir + "\\").
+                        replace(/\$\(LIBSUFFIX\)/, ".lib").replace(/\.o/, ".obj");
                 }
                 var exeFile = base + ".exe";
                 var fullExeName = fileBase + ".exe";
@@ -998,7 +999,7 @@
     if (defines instanceof Array)
         command += joinArray(defines, "/D")
 
-    command += joinArray(srcs.split(" "), "");
+    command += joinArray(srcsArr, "");
 
     var message = "Compiling with command \"" + command + "\"";
     logLine(message);

Modified: incubator/stdcxx/trunk/etc/config/windows/projects.js
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/windows/projects.js?view=diff&rev=473351&r1=473350&r2=473351
==============================================================================
--- incubator/stdcxx/trunk/etc/config/windows/projects.js (original)
+++ incubator/stdcxx/trunk/etc/config/windows/projects.js Fri Nov 10 06:33:27 2006
@@ -66,7 +66,7 @@
     configureDef.CustomBuildCmd = "cscript /nologo \"%CUSTOMFILE%\"" +
         " /SolutionName:\"%SOLUTION%\"" +
         " /ConfigurationName:\"%CFGNAME%\"" +
-        " /SrcDir:\"%SRCDIR%\\etc\\config\\src\\\"" +
+        " /SrcDir:\"%SRCDIR%\\etc\\config\\src\"" +
         " /IncludeDir:\"%SRCDIR%\\include\"" +
         " /OutDir:\"$(OutDir)\"" +
         " /OutFile:\"$(OutDir)\\config.h\"" +



Re: svn commit: r473351 - in /incubator/stdcxx/trunk/etc/config: src/EXPORT.cpp windows/configure.wsf windows/projects.js

Posted by Martin Sebor <se...@roguewave.com>.
faridz@apache.org wrote:
> Author: faridz
> Date: Fri Nov 10 06:33:27 2006
> New Revision: 473351
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=473351
> Log:
> 2006-11-10 Farid Zaripov <fa...@kyiv.vdiweb.com>
> 
> 	* EXPORT.cpp: Added "./" in LDOPTS.

Is this necessary for the Windows infrastructure to work correctly?
I don't think it's needed on UNIX (AFAIK, it causes no problems but
I don't know why it's there) but if the Windows linker needs it for
some reason a better solution might be to change the Windows scripts
and remove it from here as well as from all the other config tests
that use it. Otherwise, it might easily regress.

Here's a list of the other .cpp files that use the syntax:

$ grep -l LDOPTS etc/config/src/*.cpp
etc/config/src/COLLAPSE_STATIC_LOCALS.cpp
etc/config/src/COLLAPSE_TEMPLATE_LOCALS.cpp
etc/config/src/COLLAPSE_TEMPLATE_STATICS.cpp
etc/config/src/EXPORT.cpp
etc/config/src/EXTERN_FUNCTION_TEMPLATE.cpp
etc/config/src/EXTERN_INLINE.cpp
etc/config/src/EXTERN_MEMBER_TEMPLATE.cpp
etc/config/src/EXTERN_TEMPLATE.cpp
etc/config/src/EXTERN_TEMPLATE_BEFORE_DEFINITION.cpp
etc/config/src/IMPLICIT_INSTANTIATION.cpp
etc/config/src/LIB_EXCEPTIONS.cpp

Martin