@@ -717,34 +717,34 @@ def get_usable_variations(cls):
717717class MTLibrary (Library ):
718718 def __init__ (self , ** kwargs ):
719719 self .is_mt = kwargs .pop ('is_mt' )
720- self .is_sm = kwargs .pop ('is_sm ' ) and not self .is_mt
720+ self .is_ww = kwargs .pop ('is_ww ' ) and not self .is_mt
721721 super ().__init__ (** kwargs )
722722
723723 def get_cflags (self ):
724724 cflags = super ().get_cflags ()
725725 if self .is_mt :
726726 cflags += ['-pthread' , '-sWASM_WORKERS' ]
727- if self .is_sm :
727+ if self .is_ww :
728728 cflags += ['-sSHARED_MEMORY=1' ]
729729 return cflags
730730
731731 def get_base_name (self ):
732732 name = super ().get_base_name ()
733733 if self .is_mt :
734734 name += '-mt'
735- if self .is_sm :
735+ if self .is_ww :
736736 name += '-ww'
737737 return name
738738
739739 @classmethod
740740 def vary_on (cls ):
741- return super ().vary_on () + ['is_mt' , 'is_sm ' ]
741+ return super ().vary_on () + ['is_mt' , 'is_ww ' ]
742742
743743 @classmethod
744744 def get_default_variation (cls , ** kwargs ):
745745 return super ().get_default_variation (
746746 is_mt = settings .PTHREADS ,
747- is_sm = settings .SHARED_MEMORY and not settings .PTHREADS ,
747+ is_ww = settings .SHARED_MEMORY and not settings .PTHREADS ,
748748 ** kwargs
749749 )
750750
@@ -753,7 +753,7 @@ def variations(cls):
753753 combos = super (MTLibrary , cls ).variations ()
754754
755755 # These are mutually exclusive, only one flag will be set at any give time.
756- return [combo for combo in combos if not combo ['is_mt' ] or not combo ['is_sm ' ]]
756+ return [combo for combo in combos if not combo ['is_mt' ] or not combo ['is_ww ' ]]
757757
758758
759759class DebugLibrary (Library ):
@@ -1421,7 +1421,6 @@ class libwasm_workers(MTLibrary):
14211421
14221422 def __init__ (self , ** kwargs ):
14231423 self .debug = kwargs .pop ('debug' )
1424- self .is_ww = kwargs .pop ('is_ww' )
14251424 super ().__init__ (** kwargs )
14261425
14271426 def get_cflags (self ):
@@ -1453,11 +1452,11 @@ def get_base_name(self):
14531452
14541453 @classmethod
14551454 def vary_on (cls ):
1456- return super ().vary_on () + ['debug' , 'is_ww' ]
1455+ return super ().vary_on () + ['debug' ]
14571456
14581457 @classmethod
14591458 def get_default_variation (cls , ** kwargs ):
1460- return super ().get_default_variation (is_ww = settings . WASM_WORKERS , debug = settings .ASSERTIONS >= 1 , ** kwargs )
1459+ return super ().get_default_variation (debug = settings .ASSERTIONS >= 1 , ** kwargs )
14611460
14621461 def get_files (self ):
14631462 files = []
@@ -1586,7 +1585,7 @@ def __init__(self, **kwargs):
15861585
15871586 def get_cflags (self ):
15881587 cflags = super ().get_cflags ()
1589- if not self .is_mt and not self .is_sm :
1588+ if not self .is_mt and not self .is_ww :
15901589 cflags .append ('-D_LIBCXXABI_HAS_NO_THREADS' )
15911590 if self .eh_mode == Exceptions .NONE :
15921591 cflags .append ('-D_LIBCXXABI_NO_EXCEPTIONS' )
@@ -1700,7 +1699,7 @@ def can_use(self):
17001699 def get_cflags (self ):
17011700 cflags = super ().get_cflags ()
17021701 cflags .append ('-DNDEBUG' )
1703- if not self .is_mt and not self .is_sm :
1702+ if not self .is_mt and not self .is_ww :
17041703 cflags .append ('-D_LIBUNWIND_HAS_NO_THREADS' )
17051704 if self .eh_mode == Exceptions .NONE :
17061705 cflags .append ('-D_LIBUNWIND_HAS_NO_EXCEPTIONS' )
0 commit comments