File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ jobs:
175
175
job-type : [standard, fuzz]
176
176
include :
177
177
- job-type : standard
178
- generate-options : ' -DBUILD_GUI=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DBUILD_KERNEL_LIB=ON -DWERROR=ON'
178
+ generate-options : ' -DBUILD_GUI=ON -DWITH_ZMQ=ON -DBUILD_BENCH=ON -DBUILD_KERNEL_LIB=ON -DBUILD_UTIL_CHAINSTATE=ON -DBUILD_KERNEL_TEST=OFF - DWERROR=ON'
179
179
job-name : ' Windows native, VS 2022'
180
180
- job-type : fuzz
181
181
generate-options : ' -DVCPKG_MANIFEST_NO_DEFAULT_FEATURES=ON -DVCPKG_MANIFEST_FEATURES="wallet" -DBUILD_GUI=OFF -DBUILD_FOR_FUZZING=ON -DWERROR=ON'
@@ -263,6 +263,7 @@ jobs:
263
263
BITCOINTX : ' ${{ github.workspace }}\build\bin\Release\bitcoin-tx.exe'
264
264
BITCOINUTIL : ' ${{ github.workspace }}\build\bin\Release\bitcoin-util.exe'
265
265
BITCOINWALLET : ' ${{ github.workspace }}\build\bin\Release\bitcoin-wallet.exe'
266
+ BITCOINCHAINSTATE : ' ${{ github.workspace }}\build\bin\Release\bitcoin-chainstate.exe'
266
267
TEST_RUNNER_EXTRA : ${{ github.event_name != 'pull_request' && '--extended' || '' }}
267
268
run : py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="${RUNNER_TEMP}" --combinedlogslen=99999999 --timeout-factor=${TEST_RUNNER_TIMEOUT_FACTOR} ${TEST_RUNNER_EXTRA}
268
269
Original file line number Diff line number Diff line change 9
9
#include < string_view>
10
10
#include < vector>
11
11
12
+ #ifdef WIN32
13
+ // clang-format off
14
+ #include < windows.h>
15
+ // clang-format on
16
+ #include < codecvt>
17
+ #include < locale>
18
+ #include < shellapi.h>
19
+ #endif
20
+
12
21
using namespace btck ;
13
22
14
23
std::vector<std::byte> hex_string_to_byte_vec (std::string_view hex)
@@ -140,6 +149,22 @@ int main(int argc, char* argv[])
140
149
<< " BREAK IN FUTURE VERSIONS. DO NOT USE ON YOUR ACTUAL DATADIR." << std::endl;
141
150
return 1 ;
142
151
}
152
+
153
+ #ifdef WIN32
154
+ int win_argc;
155
+ wchar_t ** wargv = CommandLineToArgvW (GetCommandLineW (), &win_argc);
156
+ std::vector<std::string> utf8_args (win_argc);
157
+ std::vector<char *> win_argv (win_argc);
158
+ std::wstring_convert<std::codecvt_utf8_utf16<wchar_t >, wchar_t > utf8_cvt;
159
+ for (int i = 0 ; i < win_argc; i++) {
160
+ utf8_args[i] = utf8_cvt.to_bytes (wargv[i]);
161
+ win_argv[i] = &utf8_args[i][0 ];
162
+ }
163
+ LocalFree (wargv);
164
+ argc = win_argc;
165
+ argv = win_argv.data ();
166
+ #endif
167
+
143
168
std::filesystem::path abs_datadir{std::filesystem::absolute (argv[1 ])};
144
169
std::filesystem::create_directories (abs_datadir);
145
170
You can’t perform that action at this time.
0 commit comments