vsql-node 0.0.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.gyp CHANGED
@@ -20,12 +20,29 @@
20
20
  # which MSVC can't compile, so it's compiled with clang-cl instead.
21
21
  # The rest of MSVC (the linker and the headers) is still used.
22
22
  'msbuild_toolset': 'ClangCL',
23
+ # The C that V generates doesn't include stdio.h with clang, and
24
+ # defines the buffering modes as glibc's values when they aren't
25
+ # defined. These are the UCRT's, otherwise setvbuf (from V's
26
+ # initialization, in the first SQLAllocHandle) is an invalid
27
+ # parameter, which ends the process.
28
+ 'defines': ['_IOFBF=0x0000', '_IOLBF=0x0040', '_IONBF=0x0004'],
29
+ # node-gyp links every addon with ODBC, which has the same routines
30
+ # (such as SQLAllocHandle) as libvsql.
31
+ 'libraries!': ['-lodbc32.lib'],
23
32
  'msvs_settings': {
24
33
  'VCCLCompilerTool': {
25
34
  'AdditionalOptions': ['/w'],
26
35
  # Node's common.gypi gives the C++ standard to every file, which
27
- # clang-cl doesn't allow for C.
28
- 'AdditionalOptions/': [['exclude', '^[-/]std:c\\+\\+']],
36
+ # clang-cl doesn't allow for C. A Node built with clang (such as
37
+ # Node 26) also gives the profile it was optimized with, which
38
+ # only exists where Node was built.
39
+ 'AdditionalOptions/': [
40
+ ['exclude', '^[-/]std:c\\+\\+'],
41
+ ['exclude', '^-fprofile-'],
42
+ ],
43
+ },
44
+ 'VCLinkerTool': {
45
+ 'AdditionalOptions/': [['exclude', '^-fprofile-']],
29
46
  },
30
47
  },
31
48
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vsql-node",
3
- "version": "0.0.0",
3
+ "version": "1.0.0",
4
4
  "description": "A Node.js driver for vsql, a single file or in-memory SQL database.",
5
5
  "keywords": [
6
6
  "vsql",