12.113 --reduce_paths, --no_reduce_paths

Enables or disables the elimination of redundant path name information in file paths.

Mode

Effective on Windows systems only. It is supported only on 32-bit host platforms.

Usage

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.

Default

The default is --no_reduce_paths.

Example

A file to be linked might be at the location:

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

Your current working directory might be at the location:

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

The combination of these paths results in the path:

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

By using the option --reduce_paths the path becomes:

\foo\bar\baz\xyzzy\xyzzy\objects\file.c
Non-ConfidentialPDF file icon PDF versionARM DUI0474M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.