diff options
author | Josh MacDonald <josh.macdonald@gmail.com> | 2015-10-20 22:22:37 -0700 |
---|---|---|
committer | Josh MacDonald <josh.macdonald@gmail.com> | 2015-10-20 22:22:37 -0700 |
commit | f0e657823b1999ddeb7156d91be29e310ae2ec64 (patch) | |
tree | dc920b87c85a6667f7fcc37fada455da30ab4992 /xdelta3 | |
parent | 413efde5877d8a6983ef5f567c2739d617f5cd86 (diff) |
Revert temporary ASAN changes; enable VCDIFF_TOOLS for MINGW32 builds (as noted in https://github.com/jmacd/xdelta/issues/205)
Diffstat (limited to 'xdelta3')
-rw-r--r-- | xdelta3/Makefile.am | 6 | ||||
-rwxr-xr-x | xdelta3/run_release.sh | 12 | ||||
-rw-r--r-- | xdelta3/testing/file.h | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/xdelta3/Makefile.am b/xdelta3/Makefile.am index aaf8fb9..73895b6 100644 --- a/xdelta3/Makefile.am +++ b/xdelta3/Makefile.am | |||
@@ -40,10 +40,8 @@ xdelta3regtest_SOURCES = $(common_SOURCES) \ | |||
40 | WFLAGS = -Wall -Wshadow -fno-builtin -Wextra -Wsign-compare \ | 40 | WFLAGS = -Wall -Wshadow -fno-builtin -Wextra -Wsign-compare \ |
41 | -Wextra -Wno-unused-parameter -Wno-unused-function | 41 | -Wextra -Wno-unused-parameter -Wno-unused-function |
42 | 42 | ||
43 | # TODO: DO NOT RELEASE | 43 | C_WFLAGS = $(WFLAGS) -pedantic -std=c99 |
44 | ASAN = -fno-omit-frame-pointer -fsanitize=address | 44 | CXX_WFLAGS = $(WFLAGS) |
45 | C_WFLAGS = $(WFLAGS) -pedantic -std=c99 $(ASAN) | ||
46 | CXX_WFLAGS = $(WFLAGS) $(ASAN) | ||
47 | 45 | ||
48 | common_CFLAGS = \ | 46 | common_CFLAGS = \ |
49 | -DREGRESSION_TEST=1 \ | 47 | -DREGRESSION_TEST=1 \ |
diff --git a/xdelta3/run_release.sh b/xdelta3/run_release.sh index 7d0d0c6..c38c2c9 100755 --- a/xdelta3/run_release.sh +++ b/xdelta3/run_release.sh | |||
@@ -12,7 +12,9 @@ MAKEFLAGS="-j 10" | |||
12 | BUILDDIR=${SRCDIR}/build | 12 | BUILDDIR=${SRCDIR}/build |
13 | LZMASRC=${BUILDDIR}/${LZMA} | 13 | LZMASRC=${BUILDDIR}/${LZMA} |
14 | 14 | ||
15 | MINGW_CFLAGS="-DEXTERNAL_COMPRESSION=0 -DVCDIFF_TOOLS=0" | 15 | NONWIN_CFLAGS="-fno-omit-frame-pointer -fsanitize=address" |
16 | |||
17 | MINGW_CFLAGS="-DEXTERNAL_COMPRESSION=0" | ||
16 | MINGW_CFLAGS="${MINGW_CFLAGS} -DXD3_WIN32=1 -DSHELL_TESTS=0" | 18 | MINGW_CFLAGS="${MINGW_CFLAGS} -DXD3_WIN32=1 -DSHELL_TESTS=0" |
17 | 19 | ||
18 | MYOS=`uname` | 20 | MYOS=`uname` |
@@ -204,14 +206,14 @@ EOF | |||
204 | # Native compiles | 206 | # Native compiles |
205 | if [ "${MYOS}" == "Linux" ]; then | 207 | if [ "${MYOS}" == "Linux" ]; then |
206 | # Linux | 208 | # Linux |
207 | buildall x86_64-pc-linux-gnu -m32 | 209 | buildall x86_64-pc-linux-gnu -m32 "${NONWIN_CFLAGS}" |
208 | buildall x86_64-pc-linux-gnu -m64 | 210 | buildall x86_64-pc-linux-gnu -m64 "${NONWIN_CFLAGS}" |
209 | fi | 211 | fi |
210 | 212 | ||
211 | if [ "${MYOS}" == "Darwin" ]; then | 213 | if [ "${MYOS}" == "Darwin" ]; then |
212 | # OS X | 214 | # OS X |
213 | buildall x86_64-apple-darwin -m32 | 215 | buildall x86_64-apple-darwin -m32 "${NONWIN_CFLAGS}" |
214 | buildall x86_64-apple-darwin -m64 | 216 | buildall x86_64-apple-darwin -m64 "${NONWIN_CFLAGS}" |
215 | fi | 217 | fi |
216 | 218 | ||
217 | # Cross compile | 219 | # Cross compile |
diff --git a/xdelta3/testing/file.h b/xdelta3/testing/file.h index 05f9dde..c6f3c7b 100644 --- a/xdelta3/testing/file.h +++ b/xdelta3/testing/file.h | |||
@@ -50,7 +50,7 @@ public: | |||
50 | } | 50 | } |
51 | data_ = new uint8_t[data_size_]; | 51 | data_ = new uint8_t[data_size_]; |
52 | memcpy(data_, tmp, size_); | 52 | memcpy(data_, tmp, size_); |
53 | delete tmp; | 53 | delete [] tmp; |
54 | } | 54 | } |
55 | 55 | ||
56 | memcpy(data_ + size_, data, size); | 56 | memcpy(data_ + size_, data, size); |