Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
49871ae0
Commit
49871ae0
authored
Aug 11, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend super-test to include 32-bit build. Fix a bug uncovered by 32-bit Clang.
parent
a8b71cfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
5 deletions
+43
-5
compiler.c++
c++/src/capnp/compiler/compiler.c++
+4
-1
super-test.sh
super-test.sh
+39
-4
No files found.
c++/src/capnp/compiler/compiler.c++
View file @
49871ae0
...
...
@@ -305,7 +305,10 @@ private:
std
::
map
<
kj
::
StringPtr
,
kj
::
Own
<
Node
>>
builtinDecls
;
// Map of built-in declarations, like "Int32" and "List", which make up the global scope.
mutable
uint64_t
nextBogusId
=
1000
;
mutable
uint32_t
nextBogusId
=
1000
;
// Counter for assigning bogus IDs to nodes whose real ID is a duplicate. 32-bit so that we
// can atomically increment it on 32-bit machines. It will never overflow since that would
// require compiling at least 2^32 nodes in one process.
};
// =======================================================================================
...
...
super-test.sh
View file @
49871ae0
...
...
@@ -191,9 +191,44 @@ echo "Testing --with-external-capnp"
echo "========================================================================="
doit make distclean
doit ./configure --prefix="$STAGING" --with-external-capnp CAPNP=$STAGING/bin/capnp
doit ./configure --prefix="$STAGING" --disable-shared \
--with-external-capnp CAPNP=$STAGING/bin/capnp
doit make -j6 check
doit make distclean
# Test 32-bit build now while we have $STAGING available for cross-compiling.
if [ "x`uname -m`" = "xx86_64" ]; then
echo "========================================================================="
echo "Testing 32-bit build"
echo "========================================================================="
if [[ "`uname`" =~ CYGWIN ]]; then
# It'
s just not possible to run cygwin32 binaries from within cygwin64.
# Build as if we are cross-compiling, using the capnp we installed to $STAGING.
doit ./configure
--prefix
=
"
$STAGING
"
--disable-shared
--host
=
i686-pc-cygwin
\
--with-external-capnp
CAPNP
=
$STAGING
/bin/capnp
doit make
-j6
capnp-test.exe
# Expect a cygwin32 sshd to be listening at localhost port 2222, and use it
# to run the tests.
doit scp
-P
2222 capnp-test.exe localhost:~/tmp-capnp-test.exe
doit ssh
-p
2222 localhost
'./tmp-capnp-test.exe && rm tmp-capnp-test.exe'
doit make distclean
elif
[
"x
${
CXX
:-
g
++
}
"
!=
"xg++-4.8"
]
;
then
doit ./configure
CXX
=
"
${
CXX
:-
g
++
}
-m32"
--disable-shared
doit make
-j6
check
doit make distclean
fi
fi
echo
"========================================================================="
echo
"Testing c++ uninstall"
echo
"========================================================================="
doit ./configure
--prefix
=
"
$STAGING
"
doit make uninstall
echo
"========================================================================="
...
...
@@ -208,13 +243,13 @@ echo "========================================================================="
echo
"Testing with -fno-rtti and -fno-exceptions"
echo
"========================================================================="
doit ./configure CXXFLAGS=-fno-rtti
doit ./configure
--disable-shared
CXXFLAGS
=
-fno-rtti
doit make
-j6
check
doit make distclean
doit ./configure CXXFLAGS=-fno-exceptions
doit ./configure
--disable-shared
CXXFLAGS
=
-fno-exceptions
doit make
-j6
check
doit make distclean
doit ./configure CXXFLAGS="-fno-rtti -fno-exceptions"
doit ./configure
--disable-shared
CXXFLAGS
=
"-fno-rtti -fno-exceptions"
doit make
-j6
check
doit make maintainer-clean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment