Women are not just under-represented in tech, but in the majority of the most lucrative professions as a whole. So, unless we accept the bogus argument that women are just naturally worse at stuff other than babies, we must assume that this is a problem with society as a whole (the dolls-versus-lego thing is a part of that, but not the only one).
What about the possibility that men and women are different, and in particular that men are more naturally inclined to do things like sacrifice time and flexibility in order to make more money? There's no reason to expect a priori that men and women are identical in this regard. Indeed, evaluating Homo sapiens as a sexually dimorphic bipedal ape whose sexes have different reproductive incentives, it would be very surprising to find otherwise.
What about the possibility that men and women are different, and in particular that men are more naturally inclined to do things like sacrifice time and flexibility in order to make more money? There's no reason to expect a priori that men and women are identical in this regard. Indeed, evaluating Homo sapiens as a sexually dimorphic bipedal ape whose sexes have different reproductive incentives, it would be very surprising to find otherwise.