mirror of
https://github.com/facebook/sapling.git
synced 2025-01-01 09:37:56 +03:00
hg: build cdatapack on Windows
Summary: Seems to be working now. Reviewed By: quark-zju Differential Revision: D6970927 fbshipit-source-id: e67753d811819015282f47fcbdfbb263d85f054f
This commit is contained in:
parent
5d1139f87d
commit
c85791785b
@ -23,7 +23,6 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <memory.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#define ntoh_data_offset ntohll
|
||||
|
||||
@ -46,6 +45,7 @@
|
||||
|
||||
#include "lib/clib/buffer.h"
|
||||
#include "lib/clib/portability/inet.h"
|
||||
#include "lib/clib/portability/mman.h"
|
||||
#include "lib/clib/portability/unistd.h"
|
||||
|
||||
#define MAX_PAGED_IN_DATAPACK (1024 * 1024 * 1024)
|
||||
|
20
setup.py
20
setup.py
@ -1079,17 +1079,19 @@ extmodules += cythonize([
|
||||
extra_compile_args=filter(None, [STDC99, PRODUCEDEBUGSYMBOLS])),
|
||||
], compiler_directives=cythonopts)
|
||||
|
||||
libraries = [
|
||||
("datapack", {
|
||||
"sources" : ["lib/cdatapack/cdatapack.c"],
|
||||
"include_dirs" : ["."] + include_dirs,
|
||||
"libraries" : ["lz4", SHA1_LIBRARY],
|
||||
"extra_args" : filter(None,
|
||||
[STDC99, WALL, WSTRICTPROTOTYPES] + cflags),
|
||||
}),
|
||||
]
|
||||
if iswindows:
|
||||
libraries = []
|
||||
libraries += []
|
||||
else:
|
||||
libraries = [
|
||||
("datapack", {
|
||||
"sources" : ["lib/cdatapack/cdatapack.c"],
|
||||
"include_dirs" : ["."] + include_dirs,
|
||||
"libraries" : ["lz4", SHA1_LIBRARY],
|
||||
"extra_args" : filter(None,
|
||||
[STDC99, WALL, WSTRICTPROTOTYPES] + cflags),
|
||||
}),
|
||||
libraries += [
|
||||
('mpatch', {
|
||||
"sources": ["hgext/extlib/cstore/mpatch.c"],
|
||||
"include_dirs" : ["."] + include_dirs,
|
||||
|
Loading…
Reference in New Issue
Block a user