Comprehending the cracking evolution and failure mechanism of flawed rocks under compression-dominating stresses is essential to evaluating the stability of rock engineering. In this work, a newly developed geometry-constraint-based non-ordinary state-based peridynamic (GC-NOSBPD) theory that can eliminate the numerical oscillation is applied to predict the development of new cracks of flawed rocks under compression-dominating stresses. The failure of bonds between particles is judged by the bond-associated stress-based fracture criteria. The cracking evolution trajectories of semi-disc and disc specimens containing flaws are traced. The effects of flaw inclination angle on the cracking trajectories are analyzed. The cracking evolution paths of rock-like specimens with two flaws under uniaxial and biaxial compression are molded. The effects of confining stress on the growth of new cracks are investigated. The confining stress restrains the propagation of tensile cracks, but it is easy to promote the growth of shear cracks. The concentration and transfer effects of stress can plainly revel the failure mechanism of flawed rocks. The present numerical method is reasonable to predict the tensile and shear failure modes of flawed specimens under compression-dominating stresses.