Comment #5 on issue 2010 by [email protected]: platform-linux.cc build attempt on Solaris 10
http://code.google.com/p/v8/issues/detail?id=2010

Thanks! Though a more "future proof" approach would probably be:

flavors = {
  'cygwin': 'win',
  'win32': 'win',
  'darwin': 'mac'
}

if sys.platforms.startswith("freebsd"):
  flavor = "freebsd"
elif sys.platforms.startswith("sunos"):
  flavor = "sunos"
elif flavors.has_key(sys.platform):
  flavor = flavors[sys.platform]
else:
  flavor = "linux" # silently use Linux as default

which follows the idiom recommended here http://docs.python.org/library/sys.html (under sys.platform)

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to