Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
f4c70caa
Commit
f4c70caa
authored
8 years ago
by
Masood Malekghassemi
Browse files
Options
Downloads
Patches
Plain Diff
Move manylinux1 precompiler definitions into port_platform.h
parent
5f0f5325
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc/impl/codegen/port_platform.h
+32
-0
32 additions, 0 deletions
include/grpc/impl/codegen/port_platform.h
tools/run_tests/artifact_targets.py
+1
-31
1 addition, 31 deletions
tools/run_tests/artifact_targets.py
with
33 additions
and
31 deletions
include/grpc/impl/codegen/port_platform.h
+
32
−
0
View file @
f4c70caa
...
...
@@ -114,6 +114,38 @@
#define GPR_WIN32_ATOMIC 1
#define GPR_MSVC_TLS 1
#endif
#elif defined(GPR_MANYLINUX1)
// TODO(atash): manylinux1 is just another __linux__ but with ancient
// libraries; it should be integrated with the `__linux__` definitions below.
#define GPR_PLATFORM_STRING "manylinux"
#define GPR_POSIX_CRASH_HANDLER 1
#define GPR_CPU_LINUX 1
#define GPR_GCC_ATOMIC 1
#define GPR_GCC_TLS 1
#define GPR_LINUX 1
#define GPR_LINUX_LOG 1
#define GPR_POSIX_SOCKET 1
#define GPR_POSIX_WAKEUP_FD 1
#define GPR_POSIX_SOCKETADDR 1
#define GPR_POSIX_NO_SPECIAL_WAKEUP_FD 1
#define GPR_POSIX_SOCKETUTILS 1
#define GPR_HAVE_UNIX_SOCKET 1
#define GPR_HAVE_IP_PKTINFO 1
#define GPR_HAVE_IPV6_RECVPKTINFO 1
#define GPR_LINUX_ENV 1
#define GPR_POSIX_FILE 1
#define GPR_POSIX_TMPFILE 1
#define GPR_POSIX_STRING 1
#define GPR_POSIX_SUBPROCESS 1
#define GPR_POSIX_SYNC 1
#define GPR_POSIX_TIME 1
#define GPR_GETPID_IN_UNISTD_H 1
#define GPR_HAVE_MSG_NOSIGNAL 1
#ifdef _LP64
#define GPR_ARCH_64 1
#else
/* _LP64 */
#define GPR_ARCH_32 1
#endif
/* _LP64 */
#elif defined(ANDROID) || defined(__ANDROID__)
#define GPR_PLATFORM_STRING "android"
#define GPR_ANDROID 1
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/artifact_targets.py
+
1
−
31
View file @
f4c70caa
...
...
@@ -113,37 +113,7 @@ class PythonArtifact:
# defines ourselves.
# TODO(atash) get better platform-detection support in core so we don't
# need to do this manually...
environ
[
'
CFLAGS
'
]
=
"
"
.
join
([
'
-DGPR_NO_AUTODETECT_PLATFORM
'
,
'
-DGPR_PLATFORM_STRING=
\\
"
manylinux
\\
"'
,
'
-DGPR_POSIX_CRASH_HANDLER=1
'
,
'
-DGPR_CPU_LINUX=1
'
,
'
-DGPR_GCC_ATOMIC=1
'
,
'
-DGPR_GCC_TLS=1
'
,
'
-DGPR_LINUX=1
'
,
'
-DGPR_LINUX_LOG=1
'
,
#'-DGPR_LINUX_MULTIPOLL_WITH_EPOLL=1',
'
-DGPR_POSIX_SOCKET=1
'
,
'
-DGPR_POSIX_WAKEUP_FD=1
'
,
'
-DGPR_POSIX_SOCKETADDR=1
'
,
#'-DGPR_LINUX_EVENTFD=1',
'
-DGPR_POSIX_NO_SPECIAL_WAKEUP_FD=1
'
,
#'-DGPR_LINUX_SOCKETUTILS=1',
'
-DGPR_POSIX_SOCKETUTILS=1
'
,
'
-DGPR_HAVE_UNIX_SOCKET=1
'
,
'
-DGPR_HAVE_IP_PKTINFO=1
'
,
'
-DGPR_HAVE_IPV6_RECVPKTINFO=1
'
,
'
-DGPR_LINUX_ENV=1
'
,
'
-DGPR_POSIX_FILE=1
'
,
'
-DGPR_POSIX_TMPFILE=1
'
,
'
-DGPR_POSIX_STRING=1
'
,
'
-DGPR_POSIX_SUBPROCESS=1
'
,
'
-DGPR_POSIX_SYNC=1
'
,
'
-DGPR_POSIX_TIME=1
'
,
'
-DGPR_GETPID_IN_UNISTD_H=1
'
,
'
-DGPR_HAVE_MSG_NOSIGNAL=1
'
,
'
-DGPR_ARCH_{arch}=1
'
.
format
(
arch
=
(
'
32
'
if
self
.
arch
==
'
x86
'
else
'
64
'
)),
])
environ
[
'
CFLAGS
'
]
=
'
-DGPR_MANYLINUX1=1
'
return
create_docker_jobspec
(
self
.
name
,
'
tools/dockerfile/grpc_artifact_python_manylinux_%s
'
%
self
.
arch
,
'
tools/run_tests/build_artifact_python.sh
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment