modify the compile options check and setting