Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
0611d82f
Commit
0611d82f
authored
Aug 30, 2016
by
Kevin Modzelewski
Committed by
GitHub
Aug 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1345 from kmod/implicit_function_declaration
Turn off implicit-function check in release mode
parents
92fc9c30
9e1ed8ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
from_cpython/Lib/distutils/ccompiler.py
from_cpython/Lib/distutils/ccompiler.py
+3
-1
src/runtime/import.cpp
src/runtime/import.cpp
+4
-11
No files found.
from_cpython/Lib/distutils/ccompiler.py
View file @
0611d82f
...
...
@@ -373,6 +373,8 @@ class CCompiler:
cc_args
[:
0
]
=
before
if
not
any
(
'scipy'
in
s
for
s
in
pp_opts
):
import
sysconfig
if
'-DNDEBUG'
not
in
sysconfig
.
get_config_var
(
'CFLAGS'
):
cc_args
=
cc_args
+
[
"-Werror=implicit-function-declaration"
]
return
cc_args
...
...
src/runtime/import.cpp
View file @
0611d82f
...
...
@@ -138,23 +138,16 @@ extern "C" Box* import(int level, Box* from_imports, llvm::StringRef module_name
BoxedModule
*
importCExtension
(
BoxedString
*
full_name
,
const
std
::
string
&
last_name
,
const
std
::
string
&
path
)
{
void
*
handle
=
dlopen
(
path
.
c_str
(),
RTLD_NOW
);
if
(
!
handle
)
{
const
char
*
s
=
dlerror
();
// raiseExcHelper(ImportError, "%s", dlerror());
fprintf
(
stderr
,
"%s
\n
"
,
s
);
exit
(
1
);
}
if
(
!
handle
)
raiseExcHelper
(
ImportError
,
"%s"
,
dlerror
());
assert
(
handle
);
std
::
string
initname
=
"init"
+
last_name
;
void
(
*
init
)()
=
(
void
(
*
)())
dlsym
(
handle
,
initname
.
c_str
());
char
*
error
;
if
((
error
=
dlerror
())
!=
NULL
)
{
// raiseExcHelper(ImportError, "%s", error);
fprintf
(
stderr
,
"%s
\n
"
,
error
);
exit
(
1
);
}
if
((
error
=
dlerror
())
!=
NULL
)
raiseExcHelper
(
ImportError
,
"%s"
,
error
);
assert
(
init
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment