Skip to content

Commit 0451538

Browse files
author
John Haley
committed
Enable nanoseconds on linux and clean up gyp file
1 parent 765406a commit 0451538

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

vendor/libgit2.gyp

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -276,21 +276,15 @@
276276
}
277277
}
278278
}],
279-
["OS=='win'", {}, {
280-
"sources": [
281-
"libgit2/src/unix/map.c",
282-
"libgit2/src/unix/posix.h",
283-
"libgit2/src/unix/realpath.c",
284-
]
285-
}],
286279
["OS=='linux'", {
287280
"cflags": [
288281
"-DGIT_SSH",
289282
"-DGIT_SSL",
290283
"-w",
291284
],
292285
"defines": [
293-
"GIT_OPENSSL"
286+
"GIT_OPENSSL",
287+
"GIT_USE_STAT_MTIM"
294288
],
295289
"sources": [
296290
"libgit2/src/tls_stream.c",
@@ -341,8 +335,11 @@
341335
"libgit2/deps/regex"
342336
],
343337
"sources": [
344-
"libgit2/src/win32/w32_buffer.c",
345-
"libgit2/src/win32/w32_buffer.h",
338+
"libgit2/deps/regex/regex.c",
339+
"libgit2/src/transports/winhttp.c",
340+
"libgit2/src/unix/map.c",
341+
"libgit2/src/unix/posix.h",
342+
"libgit2/src/unix/realpath.c",
346343
"libgit2/src/win32/dir.c",
347344
"libgit2/src/win32/dir.h",
348345
"libgit2/src/win32/error.c",
@@ -353,8 +350,10 @@
353350
"libgit2/src/win32/map.c",
354351
"libgit2/src/win32/mingw-compat.h",
355352
"libgit2/src/win32/msvc-compat.h",
356-
"libgit2/src/win32/posix.h",
353+
"libgit2/src/win32/path_w32.c",
354+
"libgit2/src/win32/path_w32.h",
357355
"libgit2/src/win32/posix_w32.c",
356+
"libgit2/src/win32/posix.h",
358357
"libgit2/src/win32/precompiled.c",
359358
"libgit2/src/win32/precompiled.h",
360359
"libgit2/src/win32/pthread.c",
@@ -363,12 +362,10 @@
363362
"libgit2/src/win32/utf-conv.c",
364363
"libgit2/src/win32/utf-conv.h",
365364
"libgit2/src/win32/version.h",
365+
"libgit2/src/win32/w32_buffer.c",
366+
"libgit2/src/win32/w32_buffer.h",
366367
"libgit2/src/win32/w32_util.c",
367368
"libgit2/src/win32/w32_util.h",
368-
"libgit2/src/win32/path_w32.c",
369-
"libgit2/src/win32/path_w32.h",
370-
"libgit2/src/transports/winhttp.c",
371-
"libgit2/deps/regex/regex.c",
372369
],
373370
}, {
374371
"libraries": [

0 commit comments

Comments
 (0)