Revert "Revert "update build config""

This reverts commit 6c466580633ad819682bbd1db82d705b79d31e15.