Skip to content

Commit

Permalink
sm: pi build
Browse files Browse the repository at this point in the history
  • Loading branch information
obastemur committed Mar 26, 2015
1 parent fc1023f commit 89ea779
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion deps/mozjs/mozjs.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@
],

'defines': [
'HAVE_VA_LIST_AS_ARRAY=1',
'DISABLE_SHARED_JS=1',
'STATIC_JS_API=1',
'JS_DEFAULT_JITREPORT_GRANULARITY=3', # JITREPORT_GRANULARITY_OP
Expand Down Expand Up @@ -277,6 +276,8 @@
]
}]
]
}, {
'defines': ['HAVE_VA_LIST_AS_ARRAY=1']
}],
['target_arch=="x64"', {
'defines':[ 'JS_PUNBOX64', 'JS_CPU_X64=1' ],
Expand Down
8 changes: 4 additions & 4 deletions deps/mozjs/src/jsprf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ using namespace js;
* Note: on some platforms va_list is defined as an array,
* and requires array notation.
*/
#if (defined(XP_MACOSX) || defined(__ANDROID__)) && defined(JS_CPU_ARM)
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
#else
//#if defined(JS_CPU_ARM)
//#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
//#else
#ifdef HAVE_VA_COPY
#define VARARGS_ASSIGN(foo, bar) VA_COPY(foo, bar)
#elif defined(HAVE_VA_LIST_AS_ARRAY)
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
#else
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
#endif
#endif
//#endif

struct SprintfState
{
Expand Down
2 changes: 1 addition & 1 deletion jx.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
}],
['OS in "linux android freebsd"', {
"cflags": [
"-std=c++11", '-D__STDC_LIMIT_MACROS',
"-std=c++0x", '-D__STDC_LIMIT_MACROS',
'-Wno-missing-field-initializers', '-Wno-extra',
'-Wno-invalid-offsetof', '-Wno-ignored-qualifiers'
],
Expand Down

0 comments on commit 89ea779

Please sign in to comment.