File tree 4 files changed +34
-10
lines changed
4 files changed +34
-10
lines changed Original file line number Diff line number Diff line change @@ -1232,14 +1232,6 @@ try:
1232
1232
# We need to build and link the library in
1233
1233
if DEBUG : print >> sys .stderr , 'emcc: including %s' % name
1234
1234
libfile = shared .Cache .get (name , create )
1235
- if has and len (has ) > 0 :
1236
- # remove the symbols we do not need
1237
- fixed = in_temp (uniquename (libfile )) + '.bc'
1238
- shutil .copyfile (libfile , fixed )
1239
- for haz in has :
1240
- if DEBUG : print >> sys .stderr , 'emcc: including: removing symbol "%s" that we have' % haz
1241
- shared .Building .remove_symbol (fixed , haz )
1242
- libfile = fixed
1243
1235
extra_files_to_link .append (libfile )
1244
1236
force = True
1245
1237
if fix and need :
Original file line number Diff line number Diff line change 532
532
#define DLMALLOC_VERSION 20806
533
533
#endif /* DLMALLOC_VERSION */
534
534
535
+ #if EMSCRIPTEN
536
+ #define DLMALLOC_EXPORT __attribute__((__weak__, __visibility__("default")))
537
+ #endif
538
+
535
539
#ifndef DLMALLOC_EXPORT
536
540
#define DLMALLOC_EXPORT extern
537
541
#endif
@@ -6291,4 +6295,4 @@ int mspace_mallopt(int param_number, int value) {
6291
6295
* Based loosely on libg++-1.2X malloc. (It retains some of the overall
6292
6296
structure of old version, but most details differ.)
6293
6297
6294
- */
6298
+ */
Original file line number Diff line number Diff line change @@ -6245,6 +6245,34 @@ def test_direct_string_constant_usage(self):
6245
6245
}
6246
6246
'''
6247
6247
self .do_run (src , "some string constant" )
6248
+
6249
+ def test_std_cout_new (self ):
6250
+ src = '''
6251
+ #include <iostream>
6252
+
6253
+ struct NodeInfo { //structure that we want to transmit to our shaders
6254
+ float x;
6255
+ float y;
6256
+ float s;
6257
+ float c;
6258
+ };
6259
+ const int nbNodes = 100;
6260
+ NodeInfo * data = new NodeInfo[nbNodes]; //our data that will be transmitted using float texture.
6261
+
6262
+ template<int i>
6263
+ void printText( const char (&text)[ i ] )
6264
+ {
6265
+ std::cout << text << std::endl;
6266
+ }
6267
+
6268
+ int main()
6269
+ {
6270
+ printText( "some string constant" );
6271
+ return 0;
6272
+ }
6273
+ '''
6274
+
6275
+ self .do_run (src , "some string constant" )
6248
6276
6249
6277
def test_istream (self ):
6250
6278
if self .emcc_args is None : return self .skip ('requires libcxx' )
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def check_node_version():
181
181
# we re-check sanity when the settings are changed)
182
182
# We also re-check sanity and clear the cache when the version changes
183
183
184
- EMSCRIPTEN_VERSION = '1.3.4 '
184
+ EMSCRIPTEN_VERSION = '1.3.5 '
185
185
186
186
def check_sanity (force = False ):
187
187
try :
You can’t perform that action at this time.
0 commit comments