mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Update ChangeLog; fix some tools/mkdeps.c compile issue in non-Cygwin environemnts
This commit is contained in:
@@ -11300,3 +11300,6 @@
|
|||||||
* tools/mkdeps.c: Deleted mkdeps.sh and mkdeps.bat. The mkdeps
|
* tools/mkdeps.c: Deleted mkdeps.sh and mkdeps.bat. The mkdeps
|
||||||
executable generated from mkdeps.c is now that the only supported
|
executable generated from mkdeps.c is now that the only supported
|
||||||
way to make dependencies (2016-01-09).
|
way to make dependencies (2016-01-09).
|
||||||
|
* tools/mkdeps.c: Extended/fixed support for --winpath option.
|
||||||
|
Dependencies now work under Cygwin with a native Windows toolchain
|
||||||
|
(2016-01-10).
|
||||||
|
|||||||
+7
-1
@@ -112,9 +112,9 @@ static bool g_winpath = false;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char g_command[MAX_BUFFER];
|
static char g_command[MAX_BUFFER];
|
||||||
static char g_expand[MAX_EXPAND];
|
|
||||||
static char g_path[MAX_PATH];
|
static char g_path[MAX_PATH];
|
||||||
#ifdef HOST_CYGWIN
|
#ifdef HOST_CYGWIN
|
||||||
|
static char g_expand[MAX_EXPAND];
|
||||||
static char g_dequoted[MAX_PATH];
|
static char g_dequoted[MAX_PATH];
|
||||||
static char g_posixpath[MAX_PATH];
|
static char g_posixpath[MAX_PATH];
|
||||||
#endif
|
#endif
|
||||||
@@ -413,6 +413,7 @@ static void parse_args(int argc, char **argv)
|
|||||||
|
|
||||||
static const char *do_expand(const char *argument)
|
static const char *do_expand(const char *argument)
|
||||||
{
|
{
|
||||||
|
#ifdef HOST_CYGWIN
|
||||||
if (g_winpath)
|
if (g_winpath)
|
||||||
{
|
{
|
||||||
const char *src;
|
const char *src;
|
||||||
@@ -480,6 +481,7 @@ static const char *do_expand(const char *argument)
|
|||||||
return g_expand;
|
return g_expand;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return argument;
|
return argument;
|
||||||
}
|
}
|
||||||
@@ -591,7 +593,11 @@ static void do_dependency(const char *file)
|
|||||||
|
|
||||||
/* Initialize the separator */
|
/* Initialize the separator */
|
||||||
|
|
||||||
|
#ifdef HOST_CYGWIN
|
||||||
separator = (g_winnative || g_winpath) ? '\\' : '/';
|
separator = (g_winnative || g_winpath) ? '\\' : '/';
|
||||||
|
#else
|
||||||
|
separator = g_winnative ? '\\' : '/';
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Copy the compiler into the command buffer */
|
/* Copy the compiler into the command buffer */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user