Correct option is B
Option (b) is the correct meaning of the given idiom.
"Fair-weather friend": A person whose friendship cannot be relied on in difficult times.
Example: "He proved to be a
fair-weather friend, disappearing when I needed support the most."