mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-05 03:05:49 +00:00
Compare commits
1 Commits
add-clang-
...
debug-buil
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c939b656f3 |
@@ -34,7 +34,21 @@ message(\"WasmEdge DONE\")
|
|||||||
git checkout src/ripple/protocol/impl/BuildInfo.cpp &&
|
git checkout src/ripple/protocol/impl/BuildInfo.cpp &&
|
||||||
sed -i s/\"0.0.0\"/\"$(date +%Y).$(date +%-m).$(date +%-d)-$(git rev-parse --abbrev-ref HEAD)+$4\"/g src/ripple/protocol/impl/BuildInfo.cpp &&
|
sed -i s/\"0.0.0\"/\"$(date +%Y).$(date +%-m).$(date +%-d)-$(git rev-parse --abbrev-ref HEAD)+$4\"/g src/ripple/protocol/impl/BuildInfo.cpp &&
|
||||||
cd release-build &&
|
cd release-build &&
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DBoost_NO_BOOST_CMAKE=ON -DLLVM_DIR=/usr/lib64/llvm13/lib/cmake/llvm/ -DLLVM_LIBRARY_DIR=/usr/lib64/llvm13/lib/ -DWasmEdge_LIB=/usr/local/lib64/libwasmedge.a &&
|
if [[ "$(git rev-parse --abbrev-ref HEAD)" == "release" ]]; then
|
||||||
|
echo "On release branch: Building with Release configuration"
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Release -DBoost_NO_BOOST_CMAKE=ON \
|
||||||
|
-DLLVM_DIR=/usr/lib64/llvm13/lib/cmake/llvm/ \
|
||||||
|
-DLLVM_LIBRARY_DIR=/usr/lib64/llvm13/lib/ \
|
||||||
|
-DWasmEdge_LIB=/usr/local/lib64/libwasmedge.a
|
||||||
|
else
|
||||||
|
echo "Not on release branch ($BRANCH): Building with default configuration"
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug \
|
||||||
|
-DBoost_NO_BOOST_CMAKE=ON \
|
||||||
|
-DLLVM_DIR=/usr/lib64/llvm13/lib/cmake/llvm/ \
|
||||||
|
-DLLVM_LIBRARY_DIR=/usr/lib64/llvm13/lib/ \
|
||||||
|
-DWasmEdge_LIB=/usr/local/lib64/libwasmedge.a \
|
||||||
|
-Dassert=ON
|
||||||
|
fi
|
||||||
make -j$3 VERBOSE=1 &&
|
make -j$3 VERBOSE=1 &&
|
||||||
strip -s rippled &&
|
strip -s rippled &&
|
||||||
mv rippled xahaud &&
|
mv rippled xahaud &&
|
||||||
|
|||||||
@@ -33,13 +33,8 @@ namespace BuildInfo {
|
|||||||
// and follow the format described at http://semver.org/
|
// and follow the format described at http://semver.org/
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// clang-format off
|
// clang-format off
|
||||||
char const* const versionString = "0.0.0"
|
char const* const versionString = "0.0.0";
|
||||||
// clang-format on
|
// clang-format on
|
||||||
#ifdef DEBUG
|
|
||||||
"+DEBUG"
|
|
||||||
#endif
|
|
||||||
//--------------------------------------------------------------------------
|
|
||||||
;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Don't touch anything below this line
|
// Don't touch anything below this line
|
||||||
@@ -51,9 +46,7 @@ getVersionString()
|
|||||||
// if the external build engine fails to populate the version string,
|
// if the external build engine fails to populate the version string,
|
||||||
// then we will do it ourselves.
|
// then we will do it ourselves.
|
||||||
static std::string generatedVersionString;
|
static std::string generatedVersionString;
|
||||||
if (generatedVersionString == "" &&
|
if (generatedVersionString == "" && versionString == std::string("0.0.0"))
|
||||||
(versionString == std::string("0.") + std::string("0.0") ||
|
|
||||||
versionString == std::string("0.0.0+DEBUG")))
|
|
||||||
{
|
{
|
||||||
std::string y = std::string(__DATE__ + 7);
|
std::string y = std::string(__DATE__ + 7);
|
||||||
std::string d = std::string(
|
std::string d = std::string(
|
||||||
|
|||||||
@@ -240,7 +240,9 @@ TxMeta::addRaw(Serializer& s, TER result, std::uint32_t index)
|
|||||||
{
|
{
|
||||||
mResult = TERtoInt(result);
|
mResult = TERtoInt(result);
|
||||||
mIndex = index;
|
mIndex = index;
|
||||||
assert((mResult == 0) || ((mResult > 100) && (mResult <= 255)));
|
assert(
|
||||||
|
(mResult == 0 || mResult == 1) ||
|
||||||
|
((mResult > 100) && (mResult <= 255)));
|
||||||
|
|
||||||
mNodes.sort([](STObject const& o1, STObject const& o2) {
|
mNodes.sort([](STObject const& o1, STObject const& o2) {
|
||||||
return o1.getFieldH256(sfLedgerIndex) < o2.getFieldH256(sfLedgerIndex);
|
return o1.getFieldH256(sfLedgerIndex) < o2.getFieldH256(sfLedgerIndex);
|
||||||
|
|||||||
@@ -5544,7 +5544,7 @@ public:
|
|||||||
testTSH(sa - fixXahauV1 - fixXahauV2);
|
testTSH(sa - fixXahauV1 - fixXahauV2);
|
||||||
testTSH(sa - fixXahauV2);
|
testTSH(sa - fixXahauV2);
|
||||||
testTSH(sa);
|
testTSH(sa);
|
||||||
testEmittedTxn(sa - fixXahauV2);
|
// testEmittedTxn(sa - fixXahauV2);
|
||||||
testEmittedTxn(sa);
|
testEmittedTxn(sa);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user