Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
56bb6360
Commit
56bb6360
authored
Jan 26, 2014
by
Damien George
Browse files
Change -Og to -O0 in unix-cpy/Makefile; cast to small int in socket.c.
parent
554a75b6
Changes
3
Show whitespace changes
Inline
Side-by-side
unix-cpy/Makefile
View file @
56bb6360
...
...
@@ -10,9 +10,9 @@ include ../py/py.mk
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
-DUNIX
LDFLAGS
=
-lm
#Debugging/Optimization
#
Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-O
g
-g
gdb
CFLAGS
+=
-O
0
-g
else
CFLAGS
+=
-Os
#-DNDEBUG
endif
...
...
unix/Makefile
View file @
56bb6360
...
...
@@ -13,7 +13,7 @@ include ../py/py.mk
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
-DUNIX
LDFLAGS
=
-lm
#Debugging/Optimization
#
Debugging/Optimization
ifdef
DEBUG
CFLAGS
+=
-O0
-g
else
...
...
unix/socket.c
View file @
56bb6360
...
...
@@ -362,6 +362,6 @@ void rawsocket_init() {
#endif
rt_store_attr
(
m
,
MP_QSTR_getaddrinfo
,
(
mp_obj_t
)
&
mod_socket_getaddrinfo_obj
);
for
(
struct
sym_entry
*
p
=
constants
;
p
->
sym
!=
NULL
;
p
++
)
{
rt_store_attr
(
m
,
QSTR_FROM_STR_STATIC
(
p
->
sym
),
MP_OBJ_NEW_SMALL_INT
(
p
->
val
));
rt_store_attr
(
m
,
QSTR_FROM_STR_STATIC
(
p
->
sym
),
MP_OBJ_NEW_SMALL_INT
(
(
machine_int_t
)
p
->
val
));
}
}
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