--reduce_paths, --no_reduce_paths

This option enables or disables the elimination of redundant path name information in file paths.

When elimination of redundant path name information is enabled, the compiler removes sequences of the form xyz\.. from directory paths passed to the operating system. This includes system paths constructed by the compiler itself, for example, for #include searching.

Note

The removal of sequences of the form xyz\.. might not be valid if xyz is a link.

Show/hideMode

This option is effective on Windows systems only.

Show/hideUsage

Windows systems impose a 260 character limit on file paths. Where path names exist whose absolute names expand to longer than 260 characters, you can use the --reduce_paths option to reduce absolute path name length by matching up directories with corresponding instances of .. and eliminating the directory/.. sequences in pairs.

Note

It is recommended that you avoid using long and deeply nested file paths, in preference to minimizing path lengths using the --reduce_paths option.

Show/hideDefault

The default is --no_reduce_paths.

Show/hideExample

Compiling the file

..\..\..\xyzzy\xyzzy\objects\file.c

from the directory

\foo\bar\baz\gazonk\quux\bop

results in an actual path of

\foo\bar\baz\gazonk\quux\bop\..\..\..\xyzzy\xyzzy\objects\file.o

Compiling the same file from the same directory using the option --reduce_paths results in an actual path of

\foo\bar\baz\xyzzy\xyzzy\objects\file.c
Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0491F
Non-ConfidentialID091611