diff options
author | Björn Gustavsson <[email protected]> | 2016-08-10 12:17:31 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-08-12 11:59:59 +0200 |
commit | d7984e5f221ccbe8624d18790920038781720bc6 (patch) | |
tree | 5b0a15291b7ae84f1f4d9421a6582919ecc436f4 /lib/asn1/src/Makefile | |
parent | 1db9e32445dc368c6073e3b412567d81a2b5eeb2 (diff) | |
download | otp-d7984e5f221ccbe8624d18790920038781720bc6.tar.gz otp-d7984e5f221ccbe8624d18790920038781720bc6.tar.bz2 otp-d7984e5f221ccbe8624d18790920038781720bc6.zip |
Support 'make -j' when compiling ASN.1 modules
When attempting to build multiple ASN.1 modules in parallel (e.g. by
running 'make -j'), the ASN.1 compiler could crash because the names
of the .asn1db files clashed. For example, if A.asn1 and B.asn1 both
import from C.asn1, the compiler would write a C.asn1db file when
compiling A.asn1 and when compiling B.asn1.
We can avoid this problem if the compiler only writes the
module's own .asn1db file. That is, when compiling A.asn1,
the compiler would only write A.asn1db, not C.asn1db. Also,
make sure that we make the write atomic by first writing to
a temporary file that is then renamed.
Diffstat (limited to 'lib/asn1/src/Makefile')
0 files changed, 0 insertions, 0 deletions