Compile PyTorch from source with SSE4.2 instructions

Is there a way to compile PyTorch from the source code for the SSE4.2 set of instructions? I need to compile it on PC A (possibly any set of instructions) to work on PC B (only SSE4.2) in production (both Linux buster); also, I can’t build it in the production PC: for security reasons I can’t pip install or apt-get anything. Is there any way? Or I don’t even need to worry about building it for SSE4.2??