x
login Signup

How do I use the --emake-readdir-conflicts option?

How can I use this option to detect conflicts?

avatar image By prefontaine 456 asked Jul 13, 2012 at 04:18 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

This option explicitly enables conflict detection on directory read operations (commonly called glob conflicts, which is but one manifestation of the problem). Allowed values are 0 (disabled, the default value) and 1 (enabled), so --emake-readdir-conflicts=<0/1>.

If your build is susceptible to readdir conflict failures, you can enable these checks and get a correct build even if you do not conduct a single-agent build. The resulting history file is identical to a single-agent build result. Though the initial run with this feature may be over-serialized (a consequence of readdir conflicts), a good history file allows builds to go full speed, without conflicts, the next time.

You do not want to enable this option all the time. The correct way to use this option is to enable it for one run if you suspect a globbing problem, and then disable it, but continue to use the history file generated by the previous run.

Another possible strategy to use if you are not familiar with the build you are building, is to enable the option until you get a successful build, and then disable it after you have a complete, good history file.

avatar image By aaron scheiber 3.7k answered Jul 13, 2012 at 04:45 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.