- Sep 08, 2010
-
-
David Cole authored
-
- Aug 27, 2010
-
-
Brad King authored
Avoid using the old SplitString method in favor of the more robust SplitPath method.
-
Brad King authored
Document explicitly that the first component always exists. Fix the documentation of SplitPathRootComponent to note that home directory roots (~/ and ~u/) always have a trailing slash.
-
Brad King authored
-
- Aug 16, 2010
- Jul 09, 2010
-
-
Brad King authored
Clang is smart enough to recognize that "*(int*)0=0" invokes undefined behavior, warns, and produces an "undefined instruction". The message in commit "Avoid Clang optimizer bug in testProcess-[45]" (2010-07-02) is incorrect; this is not a Clang bug. It really is undefined behavior. Use "*(int*)1=0" to produce a crash instead.
-
- Jul 02, 2010
-
-
Brad King authored
Clang's optimizer, as of clang version 2.8 (trunk 107463), produces the undefined instruction 'ud2' for the code "*(int*)0=0" on OS X x86_64. It causes our crash tests to fail because the child process exits with an invalid instruction instead of a segmentation fault. Work around the bug by using "*(int*)1=0" in this case.
-
- Jun 30, 2010
-
-
Brad King authored
Add option KWSYS_TEST_BOGUS_FAILURES that can be set by a containing project or in the CMake cache to list tests known to fail consistently on a buggy system.
-
Brad King authored
If any of the KWSys Process tests take more than a minute or two then something is wrong. There is no need to wait for a long default timeout.
-
- Jun 29, 2010
-
-
Brad King authored
Since commit "Provide unix-sytle command line parsing" (2009-07-13) the reference to KWSYS_C_HAS_PTRDIFF_T in System.c has been meaningless because the macro was never passed to the compiler!
-
Brad King authored
Define KWSYS_DO_NOT_CLEAN_PUTENV only for the implementation. It does not need to be configured in the interface of "Configure.hxx".
-
- Jun 11, 2010
- Jun 10, 2010
-
-
Brad King authored
The DynamicLoader::LibPrefix and DynamicLoader::LibExtension methods previously hard-coded the module name components for each platform. Set them from the CMAKE_SHARED_MODULE_PREFIX and CMAKE_SHARED_MODULE_SUFFIX CMake variables instead. This ensures consistency in a program that uses these methods to construct the file names for its own modules.
-
- Jun 04, 2010
-
-
Brad King authored
The CopyFileIfDifferent, CopyFileAlways, CopyAFile and CopyADirectory methods should always copy permissions. The special cases in which a caller would pass copyPermissions=false should be handled at the call site. The parameter needlessly complicates the interface and semantics of these methods.
-
- Jun 03, 2010
-
-
Brad King authored
On Windows 7 the file size reported by 'stat' on a new file sometimes reports zero even though the real size is correct. This causes our CopyFileAlways method to falsely detect copy failure. Work around the problem by trusting the state of ofstream after writing the file.
-
- May 12, 2010
-
-
Bill Hoffman authored
-
- May 11, 2010
-
-
Brad King authored
kFreeBSD and Hurd have the same userland as Linux. This change is necessary to enable kwsysProcessKill() to kill child processes on kFreeBSD. The bug was detected by CTestTestTimeout test. Patch from "Modestas Vainius <modestas@vainius.eu>". See issue #10432.
-
- May 04, 2010
-
-
Bill Hoffman authored
-
- Apr 29, 2010
-
-
Bill Hoffman authored
-
- Apr 28, 2010
-
-
Bill Hoffman authored
-
- Apr 19, 2010
- Apr 09, 2010
-
-
David Cole authored
Patch to avoid short name usage where possible. Get the actual case spelling of a file name on 'Windows' without converting to short name and back again. Avoids bad behavior reported in http://bugs.winehq.org/show_bug.cgi?id=22286 when using cmake under a wine/msys/mingw installation on a Linux box. Thanks to Clinton Stimpson for preparing the patch.
-
- Mar 26, 2010
-
-
Dave Partyka authored
-
- Mar 22, 2010
-
-
Pat Marion authored
-
- Mar 18, 2010
-
-
Brad King authored
Teach kwsysProcessKill to identify processes on this platform using the "ps" command just as on Linux. Patch from Modestas Vainius <modax@debian.org>. See issue #10432.
-
- Feb 12, 2010
-
-
Brad King authored
In commit 'Create KWSYS_PLATFORM_INFO_TEST macro' (2009-11-20) we implemented the macro to use a cache entry to avoid re-running the try_compile(). However, the output copied from the try_compile is needed on every configure. If the user wipes out the build tree but not the cache file then the try_compile() will not re-run to recreate the needed file. We address the problem by teaching the macro to run the try_compile() whenever its output file does not exist.
-
- Jan 27, 2010
-
-
Brad King authored
This CVS keyword was copied into the file with the rest of the implementation. It has no meaning outside its original project tree.
-
- Jan 26, 2010
-
-
Dave Partyka authored
COMP: remove exporting String as VS10 attempts to export its parents (basic_string) which causes all kinds of multiply defined symbols at link time.
-
- Jan 13, 2010
-
-
Brad King authored
When building on Cygwin without -mwin32, the _WIN32 macro may not be defined. SharedForward must still set the PATH environment variable to ensure runtime dependencies are found. The 'ldd' wrapping feature uses 'cygcheck' for now since a real ldd tool is not available in Cygwin 1.5. We can change to use the real ldd when we choose to stop supporting legacy Cygwin and require 1.7.
-
- Jan 12, 2010
-
-
Brad King authored
Open output files with mode 0666 so that permissions are not more strict than umask permits. See issue #10126.
-
- Jan 06, 2010
-
-
Marcus Hanwell authored
-
Marcus Hanwell authored
When kwsys is built using GCC visibility support can be used. This is similar to the way that Windows exports symbols in DLLs, and requires projects that build kwsys to change the default visibility using some compiler flags. See http://gcc.gnu.org/wiki/Visibility for more details about GCC visibility.
-
- Dec 16, 2009
-
-
Brad King authored
The SharedForward header contains a preprocessor table mapping from platform to equivalents for ldd and LD_LIBRARY_PATH. This commit fixes the table preprocessor directives to guarantee at most one platform. This generalizes the commit "Fix compilation of VTK on debian/sparc".
-
- Dec 15, 2009
-
-
Brad King authored
The TestSharedForward executable and TestDynload module do not actually link to a KWSys library, but it is nice to build them after the libraries just like all other test binaries. This also works around a universal binary bug in Xcode 2.x. It forgets to create the output directory for the executable before linking it. We avoid the problem by putting the library in the directory first.
-
- Dec 11, 2009
-
-
David Cole authored
Add fallback for detecting CPU speed from Windows registry on builds where USE_ASM_INSTRUCTIONS gets defined to 0. (Win64 builds.) Clean up methods to return false when not implemented or when they fail to detect the things they're supposed to detect. This file still needs a lot more work to have a fully working implementation on Win64 builds. Committing it now because it's slightly better than it was, and there is a need for the CPU speed detection code in projects that depend on kwsys. Will file a bug shortly to request that the missing implementations get filled in...
-
- Dec 08, 2009
-
-
Brad King authored
KWSys should not set variables outside its namespace. It can honor the EXECUTABLE_OUTPUT_PATH set by a host project, but tere is no need for it to set a default in the host project cache.
-
- Dec 01, 2009
-
-
Brad King authored
In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on OpenSolaris by using "ps -ef" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*s %d %d %*[^\n]\n
-